summaryrefslogtreecommitdiff
path: root/Lib/test
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_ssl.py2
-rwxr-xr-x[-rw-r--r--]Lib/test/test_uuid.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_ssl.py b/Lib/test/test_ssl.py
index e5cd962e84..67850c34e0 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:
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