]> granicus.if.org Git - python/commitdiff
Fixed running MiscTests in test_xml_etree_c.
authorSerhiy Storchaka <storchaka@gmail.com>
Wed, 28 Dec 2016 07:27:56 +0000 (09:27 +0200)
committerSerhiy Storchaka <storchaka@gmail.com>
Wed, 28 Dec 2016 07:27:56 +0000 (09:27 +0200)
Lib/test/test_xml_etree_c.py

index 98410c55a66edb52486ae711a4603e2eae2490f2..ba7b028e7e1576fdbd90a24081d54748648dac84 100644 (file)
@@ -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