diff options
author | Fred Drake <fdrake@acm.org> | 2000-12-23 22:12:07 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2000-12-23 22:12:07 (GMT) |
commit | 1e0611b208d4efec016fcfd621accddb40f3af6a (patch) | |
tree | 49639ff98c4255d8c7ebc4f5f87e5b529d8e78d1 /Lib/test/output/test_pyexpat | |
parent | 9a1a7dda8f5f3c4c66ab1e24d9b8cf4895249868 (diff) | |
download | cpython-1e0611b208d4efec016fcfd621accddb40f3af6a.zip cpython-1e0611b208d4efec016fcfd621accddb40f3af6a.tar.gz cpython-1e0611b208d4efec016fcfd621accddb40f3af6a.tar.bz2 |
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.
Diffstat (limited to 'Lib/test/output/test_pyexpat')
-rw-r--r-- | Lib/test/output/test_pyexpat | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/Lib/test/output/test_pyexpat b/Lib/test/output/test_pyexpat index 6aed69d..4d9981c 100644 --- a/Lib/test/output/test_pyexpat +++ b/Lib/test/output/test_pyexpat @@ -30,7 +30,7 @@ Character data: End of CDATA section End element: 'sub2' -External entity ref: ('http://www.python.org/namespace=http://www.w3.org/XML/1998/namespace\014external_entity', None, 'entity.file', None) +External entity ref: (None, 'entity.file', None) End element: 'root' PI: @@ -60,7 +60,7 @@ Character data: End of CDATA section 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) +External entity ref: (None, u'entity.file', None) End element: u'root' PI: @@ -90,6 +90,15 @@ Character data: End of CDATA section 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) +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 |