mirror of
https://github.com/python/cpython.git
synced 2025-09-08 18:01:44 +00:00
gh-116303: Skip test module dependent tests if test modules are unavailable (#117341)
This commit is contained in:
parent
2ec6bb4111
commit
ea94b3b149
57 changed files with 255 additions and 123 deletions
|
@ -5,12 +5,13 @@ import threading
|
|||
import types
|
||||
import unittest
|
||||
from test.support import threading_helper, check_impl_detail, requires_specialization
|
||||
from test.support.import_helper import import_module
|
||||
|
||||
# Skip this module on other interpreters, it is cpython specific:
|
||||
if check_impl_detail(cpython=False):
|
||||
raise unittest.SkipTest('implementation detail specific to cpython')
|
||||
|
||||
import _testinternalcapi
|
||||
_testinternalcapi = import_module("_testinternalcapi")
|
||||
|
||||
|
||||
def disabling_optimizer(func):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue