[Python-checkins] cpython (merge 3.2 -> default): Use posixpath.join() explicitely in posixpath.join() test
hynek.schlawack
python-checkins at python.org
Tue Jul 17 14:30:09 CEST 2012
http://hg.python.org/cpython/rev/fbda36216f24
changeset: 78159:fbda36216f24
parent: 78157:63ba0c32b81a
parent: 78158:5470dc81caf9
user: Hynek Schlawack <hs at ox.cx>
date: Tue Jul 17 14:29:33 2012 +0200
summary:
Use posixpath.join() explicitely in posixpath.join() test
Used os.path.join before which has different semantics on Windows.
files:
Lib/test/test_posixpath.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Lib/test/test_posixpath.py b/Lib/test/test_posixpath.py
--- a/Lib/test/test_posixpath.py
+++ b/Lib/test/test_posixpath.py
@@ -69,7 +69,7 @@
"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])
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list