Issue #27493: Fix test_path_objects under Windows

This commit is contained in:
Berker Peksag 2016-07-23 07:15:12 +03:00
parent bd8b443742
commit b3bb436b86

View file

@ -596,8 +596,8 @@ class HandlerTest(BaseTest):
for cls, args in cases: for cls, args in cases:
h = cls(*args) h = cls(*args)
self.assertTrue(os.path.exists(fn)) self.assertTrue(os.path.exists(fn))
os.unlink(fn)
h.close() h.close()
os.unlink(fn)
@unittest.skipIf(os.name == 'nt', 'WatchedFileHandler not appropriate for Windows.') @unittest.skipIf(os.name == 'nt', 'WatchedFileHandler not appropriate for Windows.')
@unittest.skipUnless(threading, 'Threading required for this test.') @unittest.skipUnless(threading, 'Threading required for this test.')