mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Fix a bunch of doctests with the -d option of refactor.py.
We still have 27 failing tests (down from 39).
This commit is contained in:
parent
4502c804b9
commit
7131f84400
24 changed files with 217 additions and 217 deletions
|
@ -184,9 +184,9 @@ def parseliteral():
|
|||
>>> element = ET.fromstring("<html><body>text</body></html>")
|
||||
>>> ET.ElementTree(element).write(sys.stdout)
|
||||
<html><body>text</body></html>
|
||||
>>> print ET.tostring(element)
|
||||
>>> print(ET.tostring(element))
|
||||
<html><body>text</body></html>
|
||||
>>> print ET.tostring(element, "ascii")
|
||||
>>> print(ET.tostring(element, "ascii"))
|
||||
<?xml version='1.0' encoding='ascii'?>
|
||||
<html><body>text</body></html>
|
||||
>>> _, ids = ET.XMLID("<html><body>text</body></html>")
|
||||
|
@ -301,7 +301,7 @@ def xinclude():
|
|||
|
||||
>>> document = xinclude_loader("C1.xml")
|
||||
>>> ElementInclude.include(document, xinclude_loader)
|
||||
>>> print serialize(ET, document) # C1
|
||||
>>> print(serialize(ET, document)) # C1
|
||||
<document>
|
||||
<p>120 Mz is adequate for an average home user.</p>
|
||||
<disclaimer>
|
||||
|
@ -315,7 +315,7 @@ def xinclude():
|
|||
|
||||
>>> document = xinclude_loader("C2.xml")
|
||||
>>> ElementInclude.include(document, xinclude_loader)
|
||||
>>> print serialize(ET, document) # C2
|
||||
>>> print(serialize(ET, document)) # C2
|
||||
<document>
|
||||
<p>This document has been accessed
|
||||
324387 times.</p>
|
||||
|
@ -325,7 +325,7 @@ def xinclude():
|
|||
|
||||
>>> document = xinclude_loader("C3.xml")
|
||||
>>> ElementInclude.include(document, xinclude_loader)
|
||||
>>> print serialize(ET, document) # C3
|
||||
>>> print(serialize(ET, document)) # C3
|
||||
<document>
|
||||
<p>The following is the source of the "data.xml" resource:</p>
|
||||
<example><?xml version='1.0'?>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue