(self)
| 227 | os_helper.rmdir(filename) |
| 228 | |
| 229 | def test_samefile(self): |
| 230 | file1 = os_helper.TESTFN |
| 231 | file2 = os_helper.TESTFN + "2" |
| 232 | self.addCleanup(os_helper.unlink, file1) |
| 233 | self.addCleanup(os_helper.unlink, file2) |
| 234 | |
| 235 | create_file(file1) |
| 236 | self.assertTrue(self.pathmodule.samefile(file1, file1)) |
| 237 | |
| 238 | create_file(file2) |
| 239 | self.assertFalse(self.pathmodule.samefile(file1, file2)) |
| 240 | |
| 241 | self.assertRaises(TypeError, self.pathmodule.samefile) |
| 242 | |
| 243 | def _test_samefile_on_link_func(self, func): |
| 244 | test_fn1 = os_helper.TESTFN |
nothing calls this directly
no test coverage detected