aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/test_poll.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_poll.py')
-rw-r--r--Lib/test/test_poll.py5
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)