Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0b350c6

Browse files
committed
Use posixpath.join() explicitely in posixpath.join() test
Used os.path.join before which has different semantics on Windows.
1 parent ceb2331 commit 0b350c6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/test/test_posixpath.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def check_error_msg(list_of_args, msg):
6969
"Can't mix strings and bytes in path components.")
7070
# regression, see #15377
7171
with self.assertRaises(TypeError) as cm:
72-
os.path.join(None, 'str')
72+
posixpath.join(None, 'str')
7373
self.assertNotEqual("Can't mix strings and bytes in path components.",
7474
cm.exception.args[0])
7575

0 commit comments

Comments
 (0)