summaryrefslogtreecommitdiffstats
path: root/Lib/lib2to3
diff options
context:
space:
mode:
authorGregory P. Smith <greg@krypto.org>2012-02-14 00:26:50 (GMT)
committerGregory P. Smith <greg@krypto.org>2012-02-14 00:26:50 (GMT)
commitaed555393289849e806083d443aec44cbfb10787 (patch)
treef30e904a0317c3a395fa8593146f90313188e482 /Lib/lib2to3
parentc3a6b02d701935c4a321c1c40777b678dddaa5c3 (diff)
parent93b98ca44572ad606ced420ffe9376fa06f93c4e (diff)
downloadcpython-aed555393289849e806083d443aec44cbfb10787.zip
cpython-aed555393289849e806083d443aec44cbfb10787.tar.gz
cpython-aed555393289849e806083d443aec44cbfb10787.tar.bz2
Issue #13930: fix a / to use os.sep so that the test works on Windows.
Diffstat (limited to 'Lib/lib2to3')
-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 a3dbced..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.assertRegex(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."""