Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
0702507e
Commit
0702507e
authored
Oct 24, 2000
by
Lars Gustäbel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added a test case for the saxutils.prepare_input_source setSystemId bug.
parent
4ced5e76
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
1 deletion
+14
-1
Lib/test/output/test_sax
Lib/test/output/test_sax
+2
-1
Lib/test/test_sax.py
Lib/test/test_sax.py
+12
-0
No files found.
Lib/test/output/test_sax
View file @
0702507e
...
@@ -8,6 +8,7 @@ Passed test_expat_attrs_empty
...
@@ -8,6 +8,7 @@ Passed test_expat_attrs_empty
Passed test_expat_attrs_wattr
Passed test_expat_attrs_wattr
Passed test_expat_dtdhandler
Passed test_expat_dtdhandler
Passed test_expat_entityresolver
Passed test_expat_entityresolver
Passed test_expat_file
Passed test_expat_incomplete
Passed test_expat_incomplete
Passed test_expat_incremental
Passed test_expat_incremental
Passed test_expat_incremental_reset
Passed test_expat_incremental_reset
...
@@ -30,4 +31,4 @@ Passed test_xmlgen_content_escape
...
@@ -30,4 +31,4 @@ Passed test_xmlgen_content_escape
Passed test_xmlgen_ignorable
Passed test_xmlgen_ignorable
Passed test_xmlgen_ns
Passed test_xmlgen_ns
Passed test_xmlgen_pi
Passed test_xmlgen_pi
3
1
tests, 0 failures
3
2
tests, 0 failures
Lib/test/test_sax.py
View file @
0702507e
...
@@ -185,6 +185,18 @@ def test_filter_basic():
...
@@ -185,6 +185,18 @@ def test_filter_basic():
#
#
# ===========================================================================
# ===========================================================================
# ===== XMLReader support
def
test_expat_file
():
parser
=
create_parser
()
result
=
StringIO
()
xmlgen
=
XMLGenerator
(
result
)
parser
.
setContentHandler
(
xmlgen
)
parser
.
parse
(
open
(
findfile
(
"test.xml"
)))
return
result
.
getvalue
()
==
xml_test_out
# ===== DTDHandler support
# ===== DTDHandler support
class
TestDTDHandler
:
class
TestDTDHandler
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment