MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_glob_named_pipe

Method test_glob_named_pipe

Lib/test/test_glob.py:364–375  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

362 @unittest.skipIf(sys.platform == "vxworks",
363 "fifo requires special path on VxWorks")
364 def test_glob_named_pipe(self):
365 path = os.path.join(self.tempdir, 'mypipe')
366 os.mkfifo(path)
367
368 # gh-117127: Reopen self.dir_fd to pick up directory changes
369 self.open_dirfd()
370
371 self.assertEqual(self.rglob('mypipe'), [path])
372 self.assertEqual(self.rglob('mypipe*'), [path])
373 self.assertEqual(self.rglob('mypipe', ''), [])
374 self.assertEqual(self.rglob('mypipe', 'sub'), [])
375 self.assertEqual(self.rglob('mypipe', '*'), [])
376
377
378 @unittest.skipIf(is_wasi and Py_DEBUG, "requires too much stack")

Callers

nothing calls this directly

Calls 4

open_dirfdMethod · 0.95
rglobMethod · 0.95
joinMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected