Staging
v0.5.1
https://github.com/python/cpython
Revision 066af1074dfed4f7a6538692433ba04995dd7509 authored by Greg Ward on 22 March 2000, 00:30:54 UTC, committed by Greg Ward on 22 March 2000, 00:30:54 UTC
these must come from the 'build' command.  This means we no longer need
the misconceived 'set_peer_option()' method in Command and, more importantly,
sweeps away a bunch of potential future complexity to handle this tricky
case.
1 parent 1b4ede5
Raw File
Tip revision: 066af1074dfed4f7a6538692433ba04995dd7509 authored by Greg Ward on 22 March 2000, 00:30:54 UTC
Dropped any notion of allowing the user to specify the build directories:
Tip revision: 066af10
test_xmllib.py
'''Test module to thest the xmllib module.
   Sjoerd Mullender
'''

from test_support import verbose

testdoc = """\
<?xml version="1.0" encoding="UTF-8" standalone='yes' ?>
<!-- comments aren't allowed before the <?xml?> tag,
     but they are allowed before the <!DOCTYPE> tag -->
<!DOCTYPE greeting [
  <!ELEMENT greeting (#PCDATA)>
]>
<greeting>Hello, world!</greeting>
"""

import xmllib
if verbose:
	parser = xmllib.TestXMLParser()
else:
	parser = xmllib.XMLParser()

for c in testdoc:
	parser.feed(c)
parser.close()
back to top