Commit d0f5bab2 authored by Berker Peksag's avatar Berker Peksag

Issue #26027: Fix test_path_t_converter on Windows

parent 3ce2fd48
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment