summaryrefslogtreecommitdiff
path: root/Lib/test/test_shutil.py
diff options
context:
space:
mode:
authorpxinwr <peixing.xin@windriver.com>2020-11-29 06:06:36 +0800
committerGitHub <noreply@github.com>2020-11-28 14:06:36 -0800
commit6a273fdc2a36f52fb70359149eff014f1b6b08d4 (patch)
tree9555653acd735f5e1e4fcd626dea2d833e75b72d /Lib/test/test_shutil.py
parenta86a274b7224a5069f82c2d2cdd1f499d9c8dc22 (diff)
downloadcpython-git-6a273fdc2a36f52fb70359149eff014f1b6b08d4.tar.gz
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_shutil.py')
-rw-r--r--Lib/test/test_shutil.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_shutil.py b/Lib/test/test_shutil.py
index 890f2c7d40..df7fbedf24 100644
--- a/Lib/test/test_shutil.py
+++ b/Lib/test/test_shutil.py
@@ -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)