(self)
| 5082 | self.assertRaises(TypeError, os.scandir, obj) |
| 5083 | |
| 5084 | def test_close(self): |
| 5085 | self.create_file("file.txt") |
| 5086 | self.create_file("file2.txt") |
| 5087 | iterator = os.scandir(self.path) |
| 5088 | next(iterator) |
| 5089 | iterator.close() |
| 5090 | # multiple closes |
| 5091 | iterator.close() |
| 5092 | with self.check_no_resource_warning(): |
| 5093 | del iterator |
| 5094 | |
| 5095 | def test_context_manager(self): |
| 5096 | self.create_file("file.txt") |
nothing calls this directly
no test coverage detected