(self)
| 5343 | self.assertRaises(FileNotFoundError, os.scandir, '') |
| 5344 | |
| 5345 | def test_consume_iterator_twice(self): |
| 5346 | self.create_file("file.txt") |
| 5347 | iterator = os.scandir(self.path) |
| 5348 | |
| 5349 | entries = list(iterator) |
| 5350 | self.assertEqual(len(entries), 1, entries) |
| 5351 | |
| 5352 | # check than consuming the iterator twice doesn't raise exception |
| 5353 | entries2 = list(iterator) |
| 5354 | self.assertEqual(len(entries2), 0, entries2) |
| 5355 | |
| 5356 | def test_bad_path_type(self): |
| 5357 | for obj in [1.234, {}, []]: |
nothing calls this directly
no test coverage detected