Issue #13930: fix a / to use os.sep so that the test works on Windows.

This commit is contained in:
Gregory P. Smith 2012-02-13 16:26:50 -08:00
commit aed5553932
1 changed files with 4 additions and 2 deletions

View File

@ -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."""