Kaydet (Commit) 9297e169 authored tarafından Fred Drake's avatar Fred Drake

restore test un-intentionally removed in the xmlcore purge (revision 50941)

üst 956597f4
...@@ -199,6 +199,21 @@ def parseliteral(): ...@@ -199,6 +199,21 @@ def parseliteral():
'body' 'body'
""" """
def check_encoding(ET, encoding):
"""
>>> from xml.etree import ElementTree as ET
>>> check_encoding(ET, "ascii")
>>> check_encoding(ET, "us-ascii")
>>> check_encoding(ET, "iso-8859-1")
>>> check_encoding(ET, "iso-8859-15")
>>> check_encoding(ET, "cp437")
>>> check_encoding(ET, "mac-roman")
"""
ET.XML("<?xml version='1.0' encoding='%s'?><xml />" % encoding)
# #
# xinclude tests (samples from appendix C of the xinclude specification) # xinclude tests (samples from appendix C of the xinclude specification)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment