Issue #26027: Fix test_path_t_converter on Windows

This commit is contained in:
Berker Peksag 2016-08-27 21:26:35 +03:00
parent 3ce2fd484b
commit d0f5bab21b
1 changed files with 1 additions and 1 deletions

View File

@ -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)