summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2016-07-23 04:15:12 (GMT)
committerBerker Peksag <berker.peksag@gmail.com>2016-07-23 04:15:12 (GMT)
commitb3bb436b867fba9d755d67452e27315b5017bdfc (patch)
tree9e919fe54379e8d0750929bdb16c33900efd352d
parentbd8b443742d155b5ed99ba72defbac9565529c5a (diff)
downloadcpython-b3bb436b867fba9d755d67452e27315b5017bdfc.zip
cpython-b3bb436b867fba9d755d67452e27315b5017bdfc.tar.gz
cpython-b3bb436b867fba9d755d67452e27315b5017bdfc.tar.bz2
Issue #27493: Fix test_path_objects under Windows
-rw-r--r--Lib/test/test_logging.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py
index e998f60..7899c77 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.')