summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2016-08-27 18:26:35 (GMT)
committerBerker Peksag <berker.peksag@gmail.com>2016-08-27 18:26:35 (GMT)
commitd0f5bab21b9828f4764bd45e4afe24f23c1a55b0 (patch)
treeaee674e15c5f078dee9087a3bc2f9529ecfd19e1 /Lib/test
parent3ce2fd484bd2cccb546bf05ff6057ffaa75b1e29 (diff)
downloadcpython-d0f5bab21b9828f4764bd45e4afe24f23c1a55b0.zip
cpython-d0f5bab21b9828f4764bd45e4afe24f23c1a55b0.tar.gz
cpython-d0f5bab21b9828f4764bd45e4afe24f23c1a55b0.tar.bz2
Issue #26027: Fix test_path_t_converter on Windows
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_os.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py
index dfffed2..c1e1adc 100644
--- a/Lib/test/test_os.py
+++ b/Lib/test/test_os.py
@@ -2847,8 +2847,8 @@ class PathTConverterTests(unittest.TestCase):
bytes_filename = support.TESTFN.encode('ascii')
bytes_fspath = PathLike(bytes_filename)
fd = os.open(PathLike(str_filename), os.O_WRONLY|os.O_CREAT)
- self.addCleanup(os.close, fd)
self.addCleanup(support.unlink, support.TESTFN)
+ self.addCleanup(os.close, fd)
int_fspath = PathLike(fd)
str_fspath = PathLike(str_filename)