mirror of https://github.com/python/cpython.git
Issue #26027: Fix test_path_t_converter on Windows
This commit is contained in:
parent
3ce2fd484b
commit
d0f5bab21b
|
@ -2847,8 +2847,8 @@ def __fspath__(self):
|
||||||
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…
Reference in New Issue