mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +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
|
@ -172,7 +172,10 @@ class PollTests(unittest.TestCase):
|
|||
|
||||
@cpython_only
|
||||
def test_poll_c_limits(self):
|
||||
from _testcapi import USHRT_MAX, INT_MAX, UINT_MAX
|
||||
try:
|
||||
from _testcapi import USHRT_MAX, INT_MAX, UINT_MAX
|
||||
except ImportError:
|
||||
raise unittest.SkipTest("requires _testcapi")
|
||||
pollster = select.poll()
|
||||
pollster.register(1)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue