Python test.test_xml_etree_c() Examples
The following are 6
code examples of test.test_xml_etree_c().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
test
, or try the search function
.
Example #1
Source File: test_xml_etree_c.py From BinderFilter with MIT License | 6 votes |
def test_main(): from test import test_xml_etree, test_xml_etree_c # Run the tests specific to the C implementation test_support.run_doctest(test_xml_etree_c, verbosity=True) # Assign the C implementation before running the doctests # Patch the __name__, to prevent confusion with the pure Python test pyET = test_xml_etree.ET py__name__ = test_xml_etree.__name__ test_xml_etree.ET = cET if __name__ != '__main__': test_xml_etree.__name__ = __name__ try: # Run the same test suite as xml.etree.ElementTree test_xml_etree.test_main(module_name='xml.etree.cElementTree') finally: test_xml_etree.ET = pyET test_xml_etree.__name__ = py__name__
Example #2
Source File: test_xml_etree_c.py From oss-ftp with MIT License | 6 votes |
def test_main(): from test import test_xml_etree, test_xml_etree_c # Run the tests specific to the C implementation test_support.run_doctest(test_xml_etree_c, verbosity=True) # Assign the C implementation before running the doctests # Patch the __name__, to prevent confusion with the pure Python test pyET = test_xml_etree.ET py__name__ = test_xml_etree.__name__ test_xml_etree.ET = cET if __name__ != '__main__': test_xml_etree.__name__ = __name__ try: # Run the same test suite as xml.etree.ElementTree test_xml_etree.test_main(module_name='xml.etree.cElementTree') finally: test_xml_etree.ET = pyET test_xml_etree.__name__ = py__name__
Example #3
Source File: test_xml_etree_c.py From gcblue with BSD 3-Clause "New" or "Revised" License | 6 votes |
def test_main(): from test import test_xml_etree, test_xml_etree_c # Run the tests specific to the C implementation test_support.run_doctest(test_xml_etree_c, verbosity=True) # Assign the C implementation before running the doctests # Patch the __name__, to prevent confusion with the pure Python test pyET = test_xml_etree.ET py__name__ = test_xml_etree.__name__ test_xml_etree.ET = cET if __name__ != '__main__': test_xml_etree.__name__ = __name__ try: # Run the same test suite as xml.etree.ElementTree test_xml_etree.test_main(module_name='xml.etree.cElementTree') finally: test_xml_etree.ET = pyET test_xml_etree.__name__ = py__name__
Example #4
Source File: test_xml_etree_c.py From medicare-demo with Apache License 2.0 | 5 votes |
def test_main(): from test import test_xml_etree_c test_support.run_doctest(test_xml_etree_c, verbosity=True)
Example #5
Source File: test_xml_etree_c.py From CTFCrackTools-V2 with GNU General Public License v3.0 | 5 votes |
def test_main(): from test import test_xml_etree_c test_support.run_doctest(test_xml_etree_c, verbosity=True)
Example #6
Source File: test_xml_etree_c.py From CTFCrackTools with GNU General Public License v3.0 | 5 votes |
def test_main(): from test import test_xml_etree_c test_support.run_doctest(test_xml_etree_c, verbosity=True)