summaryrefslogtreecommitdiff
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 ae3ffc77e9..7d542b5cfd 100644
--- a/Lib/test/test_poll.py
+++ b/Lib/test/test_poll.py
@@ -7,7 +7,9 @@ import select
import threading
import time
import unittest
-from test.support import cpython_only, requires_subprocess
+from test.support import (
+ cpython_only, requires_subprocess, requires_working_socket
+)
from test.support import threading_helper
from test.support.os_helper import TESTFN
@@ -17,6 +19,7 @@ try:
except AttributeError:
raise unittest.SkipTest("select.poll not defined")
+requires_working_socket(module=True)
def find_ready_matching(ready, flag):
match = []