mirror of
https://github.com/python/cpython.git
synced 2025-07-24 03:35:53 +00:00
gh-104629: Don't skip test_clinic if _testclinic is missing (#104630)
Just skip the tests that depend on the _testclinic extension module; we can still run the Python tests.
This commit is contained in:
parent
b9dce3aec4
commit
86ee49f469
1 changed files with 5 additions and 2 deletions
|
@ -868,9 +868,12 @@ class ClinicExternalTest(TestCase):
|
|||
self.assertEqual(new_mtime_ns, old_mtime_ns)
|
||||
|
||||
|
||||
ac_tester = import_helper.import_module('_testclinic')
|
||||
|
||||
try:
|
||||
import _testclinic as ac_tester
|
||||
except ImportError:
|
||||
ac_tester = None
|
||||
|
||||
@unittest.skipIf(ac_tester is None, "_testclinic is missing")
|
||||
class ClinicFunctionalTest(unittest.TestCase):
|
||||
locals().update((name, getattr(ac_tester, name))
|
||||
for name in dir(ac_tester) if name.startswith('test_'))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue