Skip to content

Commit d0f5bab

Browse files
committed
Issue #26027: Fix test_path_t_converter on Windows
1 parent 3ce2fd4 commit d0f5bab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_os.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2847,8 +2847,8 @@ def __fspath__(self):
28472847
bytes_filename = support.TESTFN.encode('ascii')
28482848
bytes_fspath = PathLike(bytes_filename)
28492849
fd = os.open(PathLike(str_filename), os.O_WRONLY|os.O_CREAT)
2850-
self.addCleanup(os.close, fd)
28512850
self.addCleanup(support.unlink, support.TESTFN)
2851+
self.addCleanup(os.close, fd)
28522852

28532853
int_fspath = PathLike(fd)
28542854
str_fspath = PathLike(str_filename)

0 commit comments

Comments
 (0)