]> granicus.if.org Git - python/commitdiff
Issue #27493: Fix test_path_objects under Windows
authorBerker Peksag <berker.peksag@gmail.com>
Sat, 23 Jul 2016 04:15:12 +0000 (07:15 +0300)
committerBerker Peksag <berker.peksag@gmail.com>
Sat, 23 Jul 2016 04:15:12 +0000 (07:15 +0300)
Lib/test/test_logging.py

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