Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(278)

Unified Diff: tests/subprocess2_test.py

Issue 8366042: Fix tests on Windows (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/patch_test.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/subprocess2_test.py
diff --git a/tests/subprocess2_test.py b/tests/subprocess2_test.py
index d565cc0a7a35120ae31b3b3f17127688e1c79bc9..9d30452c3118220135168a934e52d407c0305a3f 100755
--- a/tests/subprocess2_test.py
+++ b/tests/subprocess2_test.py
@@ -168,7 +168,10 @@ class Subprocess2Test(unittest.TestCase):
stdout=subprocess2.VOID,
stderr=subprocess2.PIPE)
self.assertEquals(None, out)
- self.assertEquals('a\nbb\nccc\n', err)
+ expected = 'a\nbb\nccc\n'
+ if sys.platform == 'win32':
+ expected = expected.replace('\n', '\r\n')
+ self.assertEquals(expected, err)
self.assertEquals(0, code)
def test_stderr_void(self):
« no previous file with comments | « tests/patch_test.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698