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

Method test_delete_missing

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

Source from the content-addressed store, hash-verified

2122 self.assertFalse(base.joinpath('dirC', 'novel.txt').exists())
2123
2124 def test_delete_missing(self):
2125 tmp = self.cls(self.base, 'delete')
2126 tmp.mkdir()
2127 # filename is guaranteed not to exist
2128 filename = tmp / 'foo'
2129 self.assertRaises(FileNotFoundError, filename._delete)
2130
2131 @needs_symlinks
2132 def test_delete_symlink(self):

Callers

nothing calls this directly

Calls 3

clsMethod · 0.45
mkdirMethod · 0.45
assertRaisesMethod · 0.45

Tested by

no test coverage detected