Skip to content

Commit

Permalink
fixup! harden test_simple_unittest
Browse files Browse the repository at this point in the history
  • Loading branch information
blueyed committed Dec 21, 2020
1 parent c4fdcca commit f91042f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion testing/test_unittest.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def test_failing(self):
self.assertEqual('foo', 'bar')
"""
)
result = testdir.runpytest(p1)
result = testdir.runpytest(p1, "-rap")
result.stdout.fnmatch_lines(
[
"collected 2 items",
Expand All @@ -41,6 +41,7 @@ def test_failing(self):
"=*= short test summary info =*=",
"FAILED test_simple_unittest.py:6::MyTestCase::test_failing"
r" - AssertionError: 'foo' != 'bar'\n- foo\n+ bar",
"PASSED test_simple_unittest.py::MyTestCase::testpassing",
"=*= 1 failed, 1 passed in *s =*=",
],
consecutive=True,
Expand Down

0 comments on commit f91042f

Please sign in to comment.