From cfe267f2e58612d042b8a80a13bb1de3391b72ed Mon Sep 17 00:00:00 2001 From: Wilhelm Schuermann Date: Sun, 19 Oct 2014 12:26:04 +0200 Subject: [PATCH] Tests - tw-1441.t now calls runError() with merge_streams disabled. - Taskwarrior only displays an error for the first file that is not found, so only check one. --- test/tw-1441.t | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/test/tw-1441.t b/test/tw-1441.t index 23f430719..54f67484d 100755 --- a/test/tw-1441.t +++ b/test/tw-1441.t @@ -16,11 +16,10 @@ class TestBug1441(TestCase): def test_import_filename(self): """import fails if file doesn't exist""" - command = ("import", "somefile", "otherfile") - code, out, err = self.t.runError(command) + command = ("import", "xxx_doesnotexist") + code, out, err = self.t.runError(command, merge_streams=False) - self.assertIn("File 'somefile' not found.", err) - self.assertIn("File 'otherfile' not found.", err) + self.assertIn("File 'xxx_doesnotexist' not found.", err) if __name__ == "__main__":