From: Berker Peksag Date: Sat, 23 Jul 2016 04:15:12 +0000 (+0300) Subject: Issue #27493: Fix test_path_objects under Windows X-Git-Tag: v3.6.0a4~134 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b3bb436b867fba9d755d67452e27315b5017bdfc;p=python Issue #27493: Fix test_path_objects under Windows --- diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py index e998f6038e..7899c77fb9 100644 --- a/Lib/test/test_logging.py +++ b/Lib/test/test_logging.py @@ -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.')