From e96095b43f628b22aa4a385d881bc3efdd60c842 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Wed, 28 Dec 2016 09:27:56 +0200 Subject: [PATCH] Fixed running MiscTests in test_xml_etree_c. --- Lib/test/test_xml_etree_c.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Lib/test/test_xml_etree_c.py b/Lib/test/test_xml_etree_c.py index 98410c55a6..ba7b028e7e 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 -- 2.50.1