cpython: 6fd16782ecb8 (original) (raw)
Mercurial > cpython
changeset 74920:6fd16782ecb8 3.2
Issue #13930: fix a / to use os.sep so that the test works on Windows. [#13930]
Gregory P. Smith greg@krypto.org | |
---|---|
date | Mon, 13 Feb 2012 16:24:46 -0800 |
parents | c861c0a7f40c |
children | f13fbd848d50 7d8a1497b835 |
files | Lib/lib2to3/tests/test_main.py |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-)[+] [-] Lib/lib2to3/tests/test_main.py 6 |
line wrap: on
line diff
--- 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")[](#l1.7)
self.assertNotRegex(stderr, r"No changes to .*/trivial\.py")[](#l1.8)
self.assertRegex([](#l1.9)
stderr, r"No changes to .*/__init__\.py".replace("/", os.sep))[](#l1.10)
self.assertNotRegex([](#l1.11)
stderr, r"No changes to .*/trivial\.py".replace("/", os.sep))[](#l1.12)
def test_filename_changing_on_output_two_files(self): """2to3 two files in one directory with a new output dir."""