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

Method test_delete_missing

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

Source from the content-addressed store, hash-verified

2131 self.assertFalse(base.joinpath('dirC', 'novel.txt').exists())
2132
2133 def test_delete_missing(self):
2134 tmp = self.cls(self.base, 'delete')
2135 tmp.mkdir()
2136 # filename is guaranteed not to exist
2137 filename = tmp / 'foo'
2138 self.assertRaises(FileNotFoundError, filename._delete)
2139
2140 @needs_symlinks
2141 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