mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Fix test_venv to work with universal newlines (issue #13119)
This commit is contained in:
parent
6f1a40ffd3
commit
9c92a691e1
1 changed files with 3 additions and 3 deletions
|
@ -111,7 +111,7 @@ class BasicTest(BaseTest):
|
|||
p = subprocess.Popen(cmd, stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE)
|
||||
out, err = p.communicate()
|
||||
self.assertEqual(out[:-1], expected.encode())
|
||||
self.assertEqual(out.strip(), expected.encode())
|
||||
|
||||
def test_overwrite_existing(self):
|
||||
"""
|
||||
|
@ -179,7 +179,7 @@ class BasicTest(BaseTest):
|
|||
p = subprocess.Popen(cmd, stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE)
|
||||
out, err = p.communicate()
|
||||
self.assertEqual(out[:-1], envpy.encode())
|
||||
self.assertEqual(out.strip(), envpy.encode())
|
||||
|
||||
@unittest.skipUnless(can_symlink(), 'Needs symlinks')
|
||||
def test_executable_symlinks(self):
|
||||
|
@ -194,7 +194,7 @@ class BasicTest(BaseTest):
|
|||
p = subprocess.Popen(cmd, stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE)
|
||||
out, err = p.communicate()
|
||||
self.assertEqual(out[:-1], envpy.encode())
|
||||
self.assertEqual(out.strip(), envpy.encode())
|
||||
|
||||
def test_main():
|
||||
run_unittest(BasicTest)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue