MCPcopy Create free account
hub / github.com/python/cpython / test_walk_named_pipe

Method test_walk_named_pipe

Lib/test/test_os/test_os.py:1876–1887  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1874 @unittest.skipIf(sys.platform == "vxworks",
1875 "fifo requires special path on VxWorks")
1876 def test_walk_named_pipe(self):
1877 path = os_helper.TESTFN + '-pipe'
1878 os.mkfifo(path)
1879 self.addCleanup(os.unlink, path)
1880
1881 walk_it = self.walk(path)
1882 self.assertRaises(StopIteration, next, walk_it)
1883
1884 walk_it = self.walk(path, follow_symlinks=True)
1885 if self.is_fwalk:
1886 self.assertRaises(NotADirectoryError, next, walk_it)
1887 self.assertRaises(StopIteration, next, walk_it)
1888
1889 @unittest.skipUnless(hasattr(os, "mkfifo"), 'requires os.mkfifo()')
1890 @unittest.skipIf(sys.platform == "vxworks",

Callers

nothing calls this directly

Calls 3

walkMethod · 0.95
addCleanupMethod · 0.80
assertRaisesMethod · 0.45

Tested by

no test coverage detected