summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_ssl.py
diff options
context:
space:
mode:
authorpxinwr <peixing.xin@windriver.com>2020-12-08 23:20:19 (GMT)
committerGitHub <noreply@github.com>2020-12-08 23:20:19 (GMT)
commit98a54171932584883cb3973f78dd30f92d7a3a78 (patch)
treea0ece9733ad49d29c83431163cd3fe5792668f3c /Lib/test/test_ssl.py
parenteb7594f85741ef809b1ee337ee3431df20e6f8bb (diff)
downloadcpython-98a54171932584883cb3973f78dd30f92d7a3a78.zip
cpython-98a54171932584883cb3973f78dd30f92d7a3a78.tar.gz
cpython-98a54171932584883cb3973f78dd30f92d7a3a78.tar.bz2
bpo-41439: Skip test_ssl and test_uuid tests if fork() is not supported (GH-21684)
Diffstat (limited to 'Lib/test/test_ssl.py')
-rw-r--r--Lib/test/test_ssl.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_ssl.py b/Lib/test/test_ssl.py
index e5cd962..67850c3 100644
--- a/Lib/test/test_ssl.py
+++ b/Lib/test/test_ssl.py
@@ -391,7 +391,7 @@ class BasicSocketTests(unittest.TestCase):
ssl.RAND_add(b"this is a random bytes object", 75.0)
ssl.RAND_add(bytearray(b"this is a random bytearray object"), 75.0)
- @unittest.skipUnless(os.name == 'posix', 'requires posix')
+ @unittest.skipUnless(hasattr(os, 'fork'), 'need os.fork')
def test_random_fork(self):
status = ssl.RAND_status()
if not status: