summaryrefslogtreecommitdiff
path: root/Lib/test/test_uuid.py
diff options
context:
space:
mode:
authorpxinwr <peixing.xin@windriver.com>2020-12-09 07:20:19 +0800
committerGitHub <noreply@github.com>2020-12-09 00:20:19 +0100
commit98a54171932584883cb3973f78dd30f92d7a3a78 (patch)
treea0ece9733ad49d29c83431163cd3fe5792668f3c /Lib/test/test_uuid.py
parenteb7594f85741ef809b1ee337ee3431df20e6f8bb (diff)
downloadcpython-git-98a54171932584883cb3973f78dd30f92d7a3a78.tar.gz
bpo-41439: Skip test_ssl and test_uuid tests if fork() is not supported (GH-21684)
Diffstat (limited to 'Lib/test/test_uuid.py')
-rwxr-xr-x[-rw-r--r--]Lib/test/test_uuid.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_uuid.py b/Lib/test/test_uuid.py
index 718113d6e1..d6a8333427 100644..100755
--- a/Lib/test/test_uuid.py
+++ b/Lib/test/test_uuid.py
@@ -639,7 +639,7 @@ class BaseTestUUID:
equal(u, self.uuid.UUID(v))
equal(str(u), v)
- @unittest.skipUnless(os.name == 'posix', 'requires Posix')
+ @unittest.skipUnless(hasattr(os, 'fork'), 'need os.fork')
def testIssue8621(self):
# On at least some versions of OSX self.uuid.uuid4 generates
# the same sequence of UUIDs in the parent and any