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

Method test_rmdir

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

Source from the content-addressed store, hash-verified

2099 p.unlink(missing_ok=True)
2100
2101 def test_rmdir(self):
2102 p = self.cls(self.base) / 'dirA'
2103 for q in p.iterdir():
2104 q.unlink()
2105 p.rmdir()
2106 self.assertFileNotFound(p.stat)
2107 self.assertFileNotFound(p.unlink)
2108
2109 def test_delete_file(self):
2110 p = self.cls(self.base) / 'fileA'

Callers

nothing calls this directly

Calls 5

assertFileNotFoundMethod · 0.95
rmdirMethod · 0.80
clsMethod · 0.45
iterdirMethod · 0.45
unlinkMethod · 0.45

Tested by

no test coverage detected