]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-41439: Skip test_ssl and test_uuid tests if fork() is not supported (GH-21684)
authorpxinwr <peixing.xin@windriver.com>
Tue, 8 Dec 2020 23:20:19 +0000 (07:20 +0800)
committerGitHub <noreply@github.com>
Tue, 8 Dec 2020 23:20:19 +0000 (00:20 +0100)
Lib/test/test_ssl.py
Lib/test/test_uuid.py [changed mode: 0644->0755]
Misc/NEWS.d/next/Tests/2020-07-30-14-08-58.bpo-41439.yhteoi.rst [new file with mode: 0644]

index e5cd962e84710e91867af1d3be46270fd9ffc3cf..67850c34e00c208af105495a6c9ac8f0aa153dc6 100644 (file)
@@ -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:
old mode 100644 (file)
new mode 100755 (executable)
index 718113d..d6a8333
@@ -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
diff --git a/Misc/NEWS.d/next/Tests/2020-07-30-14-08-58.bpo-41439.yhteoi.rst b/Misc/NEWS.d/next/Tests/2020-07-30-14-08-58.bpo-41439.yhteoi.rst
new file mode 100644 (file)
index 0000000..0451503
--- /dev/null
@@ -0,0 +1 @@
+Port test_ssl and test_uuid to VxWorks RTOS.