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

Method test_iterdir_on_file

Lib/test/test_zipfile/_path/test_path.py:121–125  ·  view source on GitHub ↗
(self, alpharep)

Source from the content-addressed store, hash-verified

119
120 @pass_alpharep
121 def test_iterdir_on_file(self, alpharep):
122 root = zipfile.Path(alpharep)
123 a, n, b, g, j = root.iterdir()
124 with self.assertRaises(ValueError):
125 a.iterdir()
126
127 @pass_alpharep
128 def test_subdir_is_dir(self, alpharep):

Callers

nothing calls this directly

Calls 3

iterdirMethod · 0.95
assertRaisesMethod · 0.45
iterdirMethod · 0.45

Tested by

no test coverage detected