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

Method test_rmdir

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

Source from the content-addressed store, hash-verified

2090 p.unlink(missing_ok=True)
2091
2092 def test_rmdir(self):
2093 p = self.cls(self.base) / 'dirA'
2094 for q in p.iterdir():
2095 q.unlink()
2096 p.rmdir()
2097 self.assertFileNotFound(p.stat)
2098 self.assertFileNotFound(p.unlink)
2099
2100 def test_delete_file(self):
2101 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