[Python-checkins] cpython (3.2): Issue #13930: fix a / to use os.sep so that the test works on Windows.
gregory.p.smith
python-checkins at python.org
Tue Feb 14 01:29:36 CET 2012
http://hg.python.org/cpython/rev/6fd16782ecb8
changeset: 74920:6fd16782ecb8
branch: 3.2
parent: 74918:c861c0a7f40c
user: Gregory P. Smith <greg at krypto.org>
date: Mon Feb 13 16:24:46 2012 -0800
summary:
Issue #13930: fix a / to use os.sep so that the test works on Windows.
files:
Lib/lib2to3/tests/test_main.py | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/Lib/lib2to3/tests/test_main.py b/Lib/lib2to3/tests/test_main.py
--- a/Lib/lib2to3/tests/test_main.py
+++ b/Lib/lib2to3/tests/test_main.py
@@ -94,8 +94,10 @@
self.assertIn("Writing converted %s to %s" % (
os.path.join(self.py2_src_dir, name),
os.path.join(self.py3_dest_dir, name+suffix)), stderr)
- self.assertRegexpMatches(stderr, r"No changes to .*/__init__\.py")
- self.assertNotRegex(stderr, r"No changes to .*/trivial\.py")
+ self.assertRegex(
+ stderr, r"No changes to .*/__init__\.py".replace("/", os.sep))
+ self.assertNotRegex(
+ stderr, r"No changes to .*/trivial\.py".replace("/", os.sep))
def test_filename_changing_on_output_two_files(self):
"""2to3 two files in one directory with a new output dir."""
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list