From: Serhiy Storchaka Date: Wed, 28 Dec 2016 07:27:56 +0000 (+0200) Subject: Fixed running MiscTests in test_xml_etree_c. X-Git-Tag: v2.7.14rc1~315 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e96095b43f628b22aa4a385d881bc3efdd60c842;p=thirdparty%2FPython%2Fcpython.git Fixed running MiscTests in test_xml_etree_c. --- diff --git a/Lib/test/test_xml_etree_c.py b/Lib/test/test_xml_etree_c.py index 98410c55a66e..ba7b028e7e15 100644 --- a/Lib/test/test_xml_etree_c.py +++ b/Lib/test/test_xml_etree_c.py @@ -17,6 +17,7 @@ def sanity(): """ +@unittest.skipUnless(cET, 'requires _elementtree') class MiscTests(unittest.TestCase): # Issue #8651. @precisionbigmemtest(size=_2G + 100, memuse=1) @@ -67,6 +68,7 @@ def test_main(): from test import test_xml_etree, test_xml_etree_c # Run the tests specific to the C implementation + test_support.run_unittest(MiscTests) test_support.run_doctest(test_xml_etree_c, verbosity=True) # Assign the C implementation before running the doctests