mirror of https://github.com/python/cpython
Use posixpath.join() explicitely in posixpath.join() test
Used os.path.join before which has different semantics on Windows.
This commit is contained in:
parent
ceb23316c8
commit
0b350c6b3e
|
@ -69,7 +69,7 @@ class PosixPathTest(unittest.TestCase):
|
|||
"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])
|
||||
|
||||
|
|
Loading…
Reference in New Issue