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

Method test_rglob_posix

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

Source from the content-addressed store, hash-verified

3095
3096 @needs_posix
3097 def test_rglob_posix(self):
3098 P = self.cls
3099 p = P(self.base, "dirC")
3100 q = p / "dirD" / "FILEd"
3101 given = set(p.rglob("FILEd"))
3102 expect = {q} if q.exists() else set()
3103 self.assertEqual(given, expect)
3104 self.assertEqual(set(p.rglob("FILEd*")), set())
3105
3106 @needs_windows
3107 def test_rglob_windows(self):

Callers

nothing calls this directly

Calls 5

setFunction · 0.85
PClass · 0.70
rglobMethod · 0.45
existsMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected