diff options
-rw-r--r-- | Lib/test/test_xml_etree.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/test/test_xml_etree.py b/Lib/test/test_xml_etree.py index ce6bdc6d8b..2bbf513e9f 100644 --- a/Lib/test/test_xml_etree.py +++ b/Lib/test/test_xml_etree.py @@ -2420,8 +2420,11 @@ class KeywordArgsTest(unittest.TestCase): # -------------------------------------------------------------------- -@unittest.skipUnless(pyET, 'only for the Python version') class NoAcceleratorTest(unittest.TestCase): + def setUp(self): + if not pyET: + raise SkipTest('only for the Python version') + # Test that the C accelerator was not imported for pyET def test_correct_import_pyET(self): self.assertEqual(pyET.Element.__module__, 'xml.etree.ElementTree') |