diff options
author | Erlend E. Aasland <erlend@python.org> | 2024-04-03 15:11:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-03 15:11:36 +0200 |
commit | ea94b3b149eeadf33c2f7c46f16dcda0adc7cf4e (patch) | |
tree | 7fc58f8dcd7513427c7ea2ff9d7bad523be1118a /Lib/test/test_poll.py | |
parent | 2ec6bb4111d2c03c1cac02b27c74beee7e5a2a05 (diff) | |
download | cpython-ea94b3b149eeadf33c2f7c46f16dcda0adc7cf4e.tar.gz cpython-ea94b3b149eeadf33c2f7c46f16dcda0adc7cf4e.zip |
gh-116303: Skip test module dependent tests if test modules are unavailable (#117341)
Diffstat (limited to 'Lib/test/test_poll.py')
-rw-r--r-- | Lib/test/test_poll.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/test/test_poll.py b/Lib/test/test_poll.py index 1847ae95db9..5675db8d1ca 100644 --- a/Lib/test/test_poll.py +++ b/Lib/test/test_poll.py @@ -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) |