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

Method test_delete_on_named_pipe

Lib/test/test_pathlib/test_pathlib.py:2236–2246  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2234 @unittest.skipIf(sys.platform == "vxworks",
2235 "fifo requires special path on VxWorks")
2236 def test_delete_on_named_pipe(self):
2237 p = self.cls(self.base, 'pipe')
2238 os.mkfifo(p)
2239 p._delete()
2240 self.assertFalse(p.exists())
2241
2242 p = self.cls(self.base, 'dir')
2243 p.mkdir()
2244 os.mkfifo(p / 'mypipe')
2245 p._delete()
2246 self.assertFalse(p.exists())
2247
2248 def test_delete_does_not_choke_on_failing_lstat(self):
2249 try:

Callers

nothing calls this directly

Calls 5

assertFalseMethod · 0.80
clsMethod · 0.45
_deleteMethod · 0.45
existsMethod · 0.45
mkdirMethod · 0.45

Tested by

no test coverage detected