[Python-checkins] CVS: python/dist/src/Lib/test/output test_pyexpat,1.3,1.4

Fred L. Drake python-dev@python.org
Sat, 23 Dec 2000 14:12:09 -0800


Update of /cvsroot/python/python/dist/src/Lib/test/output
In directory usw-pr-cvs1:/tmp/cvs-serv18271/test/output

Modified Files:
	test_pyexpat 
Log Message:

The "context" parameter to the ExternalEntityRefParameter exposes internal
information from the Expat library that is not part of its public API.
Do not print this information as the format of the string may (and will)
change as Expat evolves.

Add additional tests to make sure the ParserCreate() function raises the
right exceptions on illegal parameters.


Index: test_pyexpat
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/output/test_pyexpat,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** test_pyexpat	2000/09/21 20:32:13	1.3
--- test_pyexpat	2000/12/23 22:12:07	1.4
***************
*** 31,35 ****
  End element:
  	'sub2'
! External entity ref: ('http://www.python.org/namespace=http://www.w3.org/XML/1998/namespace\014external_entity', None, 'entity.file', None)
  End element:
  	'root'
--- 31,35 ----
  End element:
  	'sub2'
! External entity ref: (None, 'entity.file', None)
  End element:
  	'root'
***************
*** 61,65 ****
  End element:
  	u'sub2'
! External entity ref: (u'http://www.python.org/namespace=http://www.w3.org/XML/1998/namespace\014external_entity', None, u'entity.file', None)
  End element:
  	u'root'
--- 61,65 ----
  End element:
  	u'sub2'
! External entity ref: (None, u'entity.file', None)
  End element:
  	u'root'
***************
*** 91,95 ****
  End element:
  	u'sub2'
! External entity ref: (u'http://www.python.org/namespace=http://www.w3.org/XML/1998/namespace\014external_entity', None, u'entity.file', None)
  End element:
  	u'root'
--- 91,104 ----
  End element:
  	u'sub2'
! External entity ref: (None, u'entity.file', None)
  End element:
  	u'root'
+ 
+ Testing constructor for proper handling of namespace_separator values:
+ Legal values tested o.k.
+ Caught expected TypeError:
+ ParserCreate, argument 2: expected string or None, int found
+ Caught expected ValueError:
+ namespace_separator must be one character, omitted, or None
+ Caught expected ValueError:
+ namespace_separator must be one character, omitted, or None