Skip to content

Commit 2dcdef4

Browse files
committed
bpo-38347: use os.sep instead of the Unix specific '/'
Fix a test failure on Windows by using os.sep instead of the Unix specific '/' as path separator.
1 parent b1fa966 commit 2dcdef4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_tools/test_pathfix.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def setUp(self):
1717
self.temp_directory = support.TESTFN + '.d'
1818
self.addCleanup(support.rmtree, self.temp_directory)
1919
os.mkdir(self.temp_directory)
20-
self.temp_file = self.temp_directory + '/' + \
20+
self.temp_file = self.temp_directory + os.sep + \
2121
os.path.basename(support.TESTFN) + '-t.py'
2222
self.addCleanup(support.unlink, self.temp_file)
2323

0 commit comments

Comments
 (0)