Skip to content

Commit 6a273fd

Browse files
authored
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.
1 parent a86a274 commit 6a273fd

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

Lib/test/test_pathlib.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2219,6 +2219,8 @@ def test_is_fifo_false(self):
22192219
self.assertIs((P / 'fileA\x00').is_fifo(), False)
22202220

22212221
@unittest.skipUnless(hasattr(os, "mkfifo"), "os.mkfifo() required")
2222+
@unittest.skipIf(sys.platform == "vxworks",
2223+
"fifo requires special path on VxWorks")
22222224
def test_is_fifo_true(self):
22232225
P = self.cls(BASE, 'myfifo')
22242226
try:

Lib/test/test_shutil.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -683,6 +683,8 @@ def custom_cpfun(a, b):
683683
# Issue #3002: copyfile and copytree block indefinitely on named pipes
684684
@unittest.skipUnless(hasattr(os, "mkfifo"), 'requires os.mkfifo()')
685685
@os_helper.skip_unless_symlink
686+
@unittest.skipIf(sys.platform == "vxworks",
687+
"fifo requires special path on VxWorks")
686688
def test_copytree_named_pipe(self):
687689
os.mkdir(TESTFN)
688690
try:
@@ -1206,6 +1208,8 @@ def test_dont_copy_file_onto_symlink_to_itself(self):
12061208

12071209
# Issue #3002: copyfile and copytree block indefinitely on named pipes
12081210
@unittest.skipUnless(hasattr(os, "mkfifo"), 'requires os.mkfifo()')
1211+
@unittest.skipIf(sys.platform == "vxworks",
1212+
"fifo requires special path on VxWorks")
12091213
def test_copyfile_named_pipe(self):
12101214
try:
12111215
os.mkfifo(TESTFN)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
skip some tests related to fifo on VxWorks

0 commit comments

Comments
 (0)