LEFT | RIGHT |
1 # xml.etree test. This file contains enough tests to make sure that | 1 # xml.etree test. This file contains enough tests to make sure that |
2 # all included components work as they should. | 2 # all included components work as they should. |
3 # Large parts are extracted from the upstream test suite. | 3 # Large parts are extracted from the upstream test suite. |
4 | 4 |
5 # IMPORTANT: the same doctests are run from "test_xml_etree_c" in | 5 # IMPORTANT: the same doctests are run from "test_xml_etree_c" in |
6 # order to ensure consistency between the C implementation and the | 6 # order to ensure consistency between the C implementation and the |
7 # Python implementation. | 7 # Python implementation. |
8 # | 8 # |
9 # For this purpose, the module-level "ET" symbol is temporarily | 9 # For this purpose, the module-level "ET" symbol is temporarily |
10 # monkey-patched when running the "test_xml_etree_c" test suite. | 10 # monkey-patched when running the "test_xml_etree_c" test suite. |
(...skipping 1824 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1835 ignore("This method of XMLParser is deprecated. " | 1835 ignore("This method of XMLParser is deprecated. " |
1836 "Define doctype.. method on the TreeBuilder target.") | 1836 "Define doctype.. method on the TreeBuilder target.") |
1837 | 1837 |
1838 test_support.run_doctest(test_xml_etree, verbosity=True) | 1838 test_support.run_doctest(test_xml_etree, verbosity=True) |
1839 | 1839 |
1840 # The module should not be changed by the tests | 1840 # The module should not be changed by the tests |
1841 assert test_xml_etree.ET.__name__ == module_name | 1841 assert test_xml_etree.ET.__name__ == module_name |
1842 | 1842 |
1843 if __name__ == '__main__': | 1843 if __name__ == '__main__': |
1844 test_main() | 1844 test_main() |
LEFT | RIGHT |