diff options
author | Christian Heimes <christian@python.org> | 2022-05-16 14:02:37 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-16 14:02:37 (GMT) |
commit | 9b50585e0225a80f9e383edacc7d73f1b5c8008b (patch) | |
tree | 5d3e7e1517143062aa8b7883202d5fe509244e7c /Lib/test/test_robotparser.py | |
parent | fa2b8b75eb2b8a0193d587e02b488a73579118fc (diff) | |
download | cpython-9b50585e0225a80f9e383edacc7d73f1b5c8008b.zip cpython-9b50585e0225a80f9e383edacc7d73f1b5c8008b.tar.gz cpython-9b50585e0225a80f9e383edacc7d73f1b5c8008b.tar.bz2 |
gh-90473: Skip tests that don't apply to Emscripten and WASI (GH-92846)
Diffstat (limited to 'Lib/test/test_robotparser.py')
-rw-r--r-- | Lib/test/test_robotparser.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/test/test_robotparser.py b/Lib/test/test_robotparser.py index 3821d66..8d89e2a 100644 --- a/Lib/test/test_robotparser.py +++ b/Lib/test/test_robotparser.py @@ -308,8 +308,9 @@ class RobotHandler(BaseHTTPRequestHandler): pass -@unittest.skipIf( - support.is_emscripten, "Socket server not available on Emscripten." +@unittest.skipUnless( + support.has_socket_support, + "Socket server requires working socket." ) class PasswordProtectedSiteTestCase(unittest.TestCase): |