diff options
Diffstat (limited to 'tests/test_wrapper.py')
-rw-r--r-- | tests/test_wrapper.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test_wrapper.py b/tests/test_wrapper.py index 8447bec1..f77ae1ef 100644 --- a/tests/test_wrapper.py +++ b/tests/test_wrapper.py | |||
@@ -159,7 +159,9 @@ class RunCommand(RepoWrapperTestCase): | |||
159 | def test_capture(self): | 159 | def test_capture(self): |
160 | """Check capture_output handling.""" | 160 | """Check capture_output handling.""" |
161 | ret = self.wrapper.run_command(['echo', 'hi'], capture_output=True) | 161 | ret = self.wrapper.run_command(['echo', 'hi'], capture_output=True) |
162 | self.assertEqual(ret.stdout, 'hi\n') | 162 | # echo command appends OS specific linesep, but on Windows + Git Bash |
163 | # we get UNIX ending, so we allow both. | ||
164 | self.assertIn(ret.stdout, ['hi' + os.linesep, 'hi\n']) | ||
163 | 165 | ||
164 | def test_check(self): | 166 | def test_check(self): |
165 | """Check check handling.""" | 167 | """Check check handling.""" |