From: Hynek Schlawack Date: Tue, 17 Jul 2012 12:28:44 +0000 (+0200) Subject: Use posixpath.join() explicitely in posixpath.join() test X-Git-Tag: v3.3.0b2~172^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0b350c6b3e6c811a4634ee468acc6cc477b6ae30;p=python Use posixpath.join() explicitely in posixpath.join() test Used os.path.join before which has different semantics on Windows. --- diff --git a/Lib/test/test_posixpath.py b/Lib/test/test_posixpath.py index 89c4f9e99d..599c85a477 100644 --- a/Lib/test/test_posixpath.py +++ b/Lib/test/test_posixpath.py @@ -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])