mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Issue #26027: Fix test_path_t_converter on Windows
This commit is contained in:
parent
3ce2fd484b
commit
d0f5bab21b
1 changed files with 1 additions and 1 deletions
|
@ -2847,8 +2847,8 @@ class PathTConverterTests(unittest.TestCase):
|
||||||
bytes_filename = support.TESTFN.encode('ascii')
|
bytes_filename = support.TESTFN.encode('ascii')
|
||||||
bytes_fspath = PathLike(bytes_filename)
|
bytes_fspath = PathLike(bytes_filename)
|
||||||
fd = os.open(PathLike(str_filename), os.O_WRONLY|os.O_CREAT)
|
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(support.unlink, support.TESTFN)
|
||||||
|
self.addCleanup(os.close, fd)
|
||||||
|
|
||||||
int_fspath = PathLike(fd)
|
int_fspath = PathLike(fd)
|
||||||
str_fspath = PathLike(str_filename)
|
str_fspath = PathLike(str_filename)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue