summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_pathlib.py
diff options
context:
space:
mode:
authorpxinwr <peixing.xin@windriver.com>2020-11-28 22:06:36 (GMT)
committerGitHub <noreply@github.com>2020-11-28 22:06:36 (GMT)
commit6a273fdc2a36f52fb70359149eff014f1b6b08d4 (patch)
tree9555653acd735f5e1e4fcd626dea2d833e75b72d /Lib/test/test_pathlib.py
parenta86a274b7224a5069f82c2d2cdd1f499d9c8dc22 (diff)
downloadcpython-6a273fdc2a36f52fb70359149eff014f1b6b08d4.zip
cpython-6a273fdc2a36f52fb70359149eff014f1b6b08d4.tar.gz
cpython-6a273fdc2a36f52fb70359149eff014f1b6b08d4.tar.bz2
bpo-31904: skip some tests related to fifo on VxWorks (GH-23473)
On VxWork RTOS, FIFO must be created under directory "/fifos/". Some test cases related to fifo is invalid on VxWorks. So skip them.
Diffstat (limited to 'Lib/test/test_pathlib.py')
-rw-r--r--Lib/test/test_pathlib.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_pathlib.py b/Lib/test/test_pathlib.py
index 5e5e065..7f7f72c 100644
--- a/Lib/test/test_pathlib.py
+++ b/Lib/test/test_pathlib.py
@@ -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: