]> granicus.if.org Git - python/commitdiff
Use posixpath.join() explicitely in posixpath.join() test
authorHynek Schlawack <hs@ox.cx>
Tue, 17 Jul 2012 12:28:44 +0000 (14:28 +0200)
committerHynek Schlawack <hs@ox.cx>
Tue, 17 Jul 2012 12:28:44 +0000 (14:28 +0200)
Used os.path.join before which has different semantics on Windows.

Lib/test/test_posixpath.py

index 89c4f9e99da123a1cdbf7b9e01b8660cc74dc964..599c85a4771afcb47a33030e8fee197508f64ce0 100644 (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])