MCPcopy Index your code
hub / github.com/python/cpython / test_glob_named_pipe

Method test_glob_named_pipe

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

Source from the content-addressed store, hash-verified

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