Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit86ee49f

Browse files
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.
1 parentb9dce3a commit86ee49f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

‎Lib/test/test_clinic.py‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -868,9 +868,12 @@ def test_external(self):
868868
self.assertEqual(new_mtime_ns,old_mtime_ns)
869869

870870

871-
ac_tester=import_helper.import_module('_testclinic')
872-
871+
try:
872+
import_testclinicasac_tester
873+
exceptImportError:
874+
ac_tester=None
873875

876+
@unittest.skipIf(ac_testerisNone,"_testclinic is missing")
874877
classClinicFunctionalTest(unittest.TestCase):
875878
locals().update((name,getattr(ac_tester,name))
876879
fornameindir(ac_tester)ifname.startswith('test_'))

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp