diff options
author | Gregory P. Smith <greg@krypto.org> | 2012-02-14 00:28:54 (GMT) |
---|---|---|
committer | Gregory P. Smith <greg@krypto.org> | 2012-02-14 00:28:54 (GMT) |
commit | d9c2df868f827ca9c72ee28f7a1a6619275863ee (patch) | |
tree | e921bfb17d8d45869f18d1bfe9a95486fbf397fc /Lib | |
parent | c48c16ea3a48d0a55aa3d1fe1a7934b225866f3f (diff) | |
download | cpython-d9c2df868f827ca9c72ee28f7a1a6619275863ee.zip cpython-d9c2df868f827ca9c72ee28f7a1a6619275863ee.tar.gz cpython-d9c2df868f827ca9c72ee28f7a1a6619275863ee.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.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 index ce11655..455d8a7 100644 --- a/Lib/lib2to3/tests/test_main.py +++ b/Lib/lib2to3/tests/test_main.py @@ -104,8 +104,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.assertRegexpMatches( + 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.""" |