Kaydet (Commit) d9c2df86 authored tarafından Gregory P. Smith's avatar Gregory P. Smith

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

üst c48c16ea
...@@ -104,8 +104,10 @@ class TestMain(unittest.TestCase): ...@@ -104,8 +104,10 @@ class TestMain(unittest.TestCase):
self.assertIn("Writing converted %s to %s" % ( self.assertIn("Writing converted %s to %s" % (
os.path.join(self.py2_src_dir, name), os.path.join(self.py2_src_dir, name),
os.path.join(self.py3_dest_dir, name+suffix)), stderr) os.path.join(self.py3_dest_dir, name+suffix)), stderr)
self.assertRegexpMatches(stderr, r"No changes to .*/__init__\.py") self.assertRegexpMatches(
self.assertNotRegex(stderr, r"No changes to .*/trivial\.py") 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): def test_filename_changing_on_output_two_files(self):
"""2to3 two files in one directory with a new output dir.""" """2to3 two files in one directory with a new output dir."""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment