bpo-41439: Skip test_ssl and test_uuid tests if fork() is not supported (GH-21684)
This commit is contained in:
parent
eb7594f857
commit
98a5417193
|
@ -391,7 +391,7 @@ class BasicSocketTests(unittest.TestCase):
|
||||||
ssl.RAND_add(b"this is a random bytes object", 75.0)
|
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)
|
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):
|
def test_random_fork(self):
|
||||||
status = ssl.RAND_status()
|
status = ssl.RAND_status()
|
||||||
if not status:
|
if not status:
|
||||||
|
|
|
@ -639,7 +639,7 @@ class BaseTestUUID:
|
||||||
equal(u, self.uuid.UUID(v))
|
equal(u, self.uuid.UUID(v))
|
||||||
equal(str(u), v)
|
equal(str(u), v)
|
||||||
|
|
||||||
@unittest.skipUnless(os.name == 'posix', 'requires Posix')
|
@unittest.skipUnless(hasattr(os, 'fork'), 'need os.fork')
|
||||||
def testIssue8621(self):
|
def testIssue8621(self):
|
||||||
# On at least some versions of OSX self.uuid.uuid4 generates
|
# On at least some versions of OSX self.uuid.uuid4 generates
|
||||||
# the same sequence of UUIDs in the parent and any
|
# the same sequence of UUIDs in the parent and any
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
Port test_ssl and test_uuid to VxWorks RTOS.
|
Loading…
Reference in New Issue