Skip to content

Commit f6c2f6c

Browse files
Skip the fifo test in test_glob if not supported.
1 parent 900187d commit f6c2f6c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Lib/test/test_glob.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,9 @@ def test_glob_non_directory(self):
344344
eq(self.rglob('nonexistent', '*'), [])
345345
eq(self.rglob('nonexistent', '**'), [])
346346

347+
@unittest.skipUnless(hasattr(os, "mkfifo"), 'requires os.mkfifo()')
348+
@unittest.skipIf(sys.platform == "vxworks",
349+
"fifo requires special path on VxWorks")
347350
def test_glob_named_pipe(self):
348351
path = os.path.join(self.tempdir, 'mypipe')
349352
os.mkfifo(path)

0 commit comments

Comments
 (0)