Use posixpath.join() explicitely in posixpath.join() test

Used os.path.join before which has different semantics on Windows.
This commit is contained in:
Hynek Schlawack 2012-07-17 14:28:44 +02:00
parent ceb23316c8
commit 0b350c6b3e
1 changed files with 1 additions and 1 deletions

View File

@ -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])