Unittest - Adjust failing tests due to split of streams

This commit is contained in:
Renato Alves
2014-10-20 18:51:18 +01:00
parent efdb31fb90
commit d09fcf398e
3 changed files with 7 additions and 7 deletions

View File

@@ -19,7 +19,7 @@ class TestEmptyFilter(TestCase):
self.t(("add", "bar"))
code, out, err = self.t.runError(("modify", "rc.allow.empty.filter=yes", "rc.confirmation=no", "priority:H"))
self.assertIn("Command prevented from running.", out)
self.assertIn("Command prevented from running.", err)
def test_empty_filter_error(self):
"""Modify tasks with no filter, and disallowed confirmation."""
@@ -28,7 +28,7 @@ class TestEmptyFilter(TestCase):
self.t(("add", "bar"))
code, out, err = self.t.runError(("modify", "rc.allow.empty.filter=no", "priority:H"))
self.assertIn("You did not specify a filter, and with the 'allow.empty.filter' value, no action is taken.", out)
self.assertIn("You did not specify a filter, and with the 'allow.empty.filter' value, no action is taken.", err)
if __name__ == "__main__":
from simpletap import TAPTestRunner