Skip to content

Commit

Permalink
Use posixpath.join() explicitely in posixpath.join() test
Browse files Browse the repository at this point in the history
Used os.path.join before which has different semantics on Windows.
  • Loading branch information
hynek committed Jul 17, 2012
2 parents f90fc68 + 0b350c6 commit 1171862
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/test/test_posixpath.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def check_error_msg(list_of_args, msg):
"Can't mix strings and bytes in path components.")
# regression, see #15377
with self.assertRaises(TypeError) as cm:
os.path.join(None, 'str')
posixpath.join(None, 'str')
self.assertNotEqual("Can't mix strings and bytes in path components.",
cm.exception.args[0])

Expand Down

0 comments on commit 1171862

Please sign in to comment.