Unittest - default to not merging stdout/stderr during tests

* Tests will now check that stderr is used for errors
* Tests were adjusted to reflect the API change
This commit is contained in:
Renato Alves 2014-10-20 14:01:21 +01:00
parent c9102fd79c
commit efdb31fb90
4 changed files with 22 additions and 18 deletions

View file

@ -17,7 +17,7 @@ class TestBug1441(TestCase):
def test_import_filename(self):
"""import fails if file doesn't exist"""
command = ("import", "xxx_doesnotexist")
code, out, err = self.t.runError(command, merge_streams=False)
code, out, err = self.t.runError(command)
self.assertIn("File 'xxx_doesnotexist' not found.", err)