summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGregory P. Smith <greg@krypto.org>2012-02-14 00:24:46 (GMT)
committerGregory P. Smith <greg@krypto.org>2012-02-14 00:24:46 (GMT)
commit93b98ca44572ad606ced420ffe9376fa06f93c4e (patch)
tree628b58f4bc0fbe3d00386c56b3ae13bab36d0001 /Lib
parentcbe01342bc943cab3afec289ca679684fbd0ab9e (diff)
downloadcpython-93b98ca44572ad606ced420ffe9376fa06f93c4e.zip
cpython-93b98ca44572ad606ced420ffe9376fa06f93c4e.tar.gz
cpython-93b98ca44572ad606ced420ffe9376fa06f93c4e.tar.bz2
Issue #13930: fix a / to use os.sep so that the test works on Windows.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/lib2to3/tests/test_main.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/Lib/lib2to3/tests/test_main.py b/Lib/lib2to3/tests/test_main.py
index 407afa1..225c15d 100644
--- a/Lib/lib2to3/tests/test_main.py
+++ b/Lib/lib2to3/tests/test_main.py
@@ -94,8 +94,10 @@ class TestMain(unittest.TestCase):
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."""