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:29:33 +02:00
commit 11718620ef
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])