(self)
| 196 | self.assertRaises(StopIteration, next, it) |
| 197 | |
| 198 | def test_walk_prune(self): |
| 199 | expected = {self.root, self.root / 'dirA', self.root / 'dirC', self.root / 'dirC' / 'dirD'} |
| 200 | actual = set() |
| 201 | for path, dirnames, filenames in self.root.walk(): |
| 202 | actual.add(path) |
| 203 | if path == self.root: |
| 204 | dirnames.remove('dirB') |
| 205 | self.assertEqual(actual, expected) |
| 206 | |
| 207 | def test_walk_bottom_up(self): |
| 208 | seen_root = seen_dira = seen_dirb = seen_dirc = seen_dird = False |
nothing calls this directly
no test coverage detected