]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-31904: skip some tests related to fifo on VxWorks (GH-23473)
authorpxinwr <peixing.xin@windriver.com>
Sat, 28 Nov 2020 22:06:36 +0000 (06:06 +0800)
committerGitHub <noreply@github.com>
Sat, 28 Nov 2020 22:06:36 +0000 (14:06 -0800)
On VxWork RTOS, FIFO must be created under directory "/fifos/". Some test cases related to fifo is invalid on VxWorks. So skip them.

Lib/test/test_pathlib.py
Lib/test/test_shutil.py
Misc/NEWS.d/next/Tests/2020-11-23-11-11-29.bpo-31904.V3sUZk.rst [new file with mode: 0644]

index 5e5e065b988aaf2437aa1a03eef40a6ab654fd3f..7f7f72c625806f76b33b89fc7fe2be235979c6a7 100644 (file)
@@ -2219,6 +2219,8 @@ class _BasePathTest(object):
         self.assertIs((P / 'fileA\x00').is_fifo(), False)
 
     @unittest.skipUnless(hasattr(os, "mkfifo"), "os.mkfifo() required")
+    @unittest.skipIf(sys.platform == "vxworks",
+                    "fifo requires special path on VxWorks")
     def test_is_fifo_true(self):
         P = self.cls(BASE, 'myfifo')
         try:
index 890f2c7d406c24619c05d1107f343b17735b4fce..df7fbedf24a7c2adfa884fadb845708ee595dbb0 100644 (file)
@@ -683,6 +683,8 @@ class TestCopyTree(BaseTest, unittest.TestCase):
     # Issue #3002: copyfile and copytree block indefinitely on named pipes
     @unittest.skipUnless(hasattr(os, "mkfifo"), 'requires os.mkfifo()')
     @os_helper.skip_unless_symlink
+    @unittest.skipIf(sys.platform == "vxworks",
+                    "fifo requires special path on VxWorks")
     def test_copytree_named_pipe(self):
         os.mkdir(TESTFN)
         try:
@@ -1206,6 +1208,8 @@ class TestCopy(BaseTest, unittest.TestCase):
 
     # Issue #3002: copyfile and copytree block indefinitely on named pipes
     @unittest.skipUnless(hasattr(os, "mkfifo"), 'requires os.mkfifo()')
+    @unittest.skipIf(sys.platform == "vxworks",
+                    "fifo requires special path on VxWorks")
     def test_copyfile_named_pipe(self):
         try:
             os.mkfifo(TESTFN)
diff --git a/Misc/NEWS.d/next/Tests/2020-11-23-11-11-29.bpo-31904.V3sUZk.rst b/Misc/NEWS.d/next/Tests/2020-11-23-11-11-29.bpo-31904.V3sUZk.rst
new file mode 100644 (file)
index 0000000..7202cfa
--- /dev/null
@@ -0,0 +1 @@
+skip some tests related to fifo on VxWorks