bpo-31904: skip some tests related to fifo on VxWorks (GH-23473) · python/cpython@6a273fd

3 files changed

lines changed

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:

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)

Original file line numberDiff line numberDiff line change

@@ -0,0 +1 @@

1+

skip some tests related to fifo on VxWorks