(self)
| 5358 | self.assertRaises(TypeError, os.scandir, obj) |
| 5359 | |
| 5360 | def test_close(self): |
| 5361 | self.create_file("file.txt") |
| 5362 | self.create_file("file2.txt") |
| 5363 | iterator = os.scandir(self.path) |
| 5364 | next(iterator) |
| 5365 | iterator.close() |
| 5366 | # multiple closes |
| 5367 | iterator.close() |
| 5368 | with self.check_no_resource_warning(): |
| 5369 | del iterator |
| 5370 | |
| 5371 | def test_context_manager(self): |
| 5372 | self.create_file("file.txt") |
nothing calls this directly
no test coverage detected