Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9dce3a commit 86ee49fCopy full SHA for 86ee49f
1 file changed
Lib/test/test_clinic.py
@@ -868,9 +868,12 @@ def test_external(self):
868
self.assertEqual(new_mtime_ns, old_mtime_ns)
869
870
871
-ac_tester = import_helper.import_module('_testclinic')
872
-
+try:
+ import _testclinic as ac_tester
873
+except ImportError:
874
+ ac_tester = None
875
876
+@unittest.skipIf(ac_tester is None, "_testclinic is missing")
877
class ClinicFunctionalTest(unittest.TestCase):
878
locals().update((name, getattr(ac_tester, name))
879
for name in dir(ac_tester) if name.startswith('test_'))
0 commit comments