Skip to content

Commit 0885bfe

Browse files
committed
fixup! harden test_simple_unittest
1 parent 7c18c94 commit 0885bfe

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

testing/test_unittest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def test_failing(self):
1919
self.assertEqual('foo', 'bar')
2020
"""
2121
)
22-
result = testdir.runpytest(p1)
22+
result = testdir.runpytest(p1, "-rap")
2323
result.stdout.fnmatch_lines(
2424
[
2525
"collected 2 items",
@@ -41,6 +41,7 @@ def test_failing(self):
4141
"=*= short test summary info =*=",
4242
"FAILED test_simple_unittest.py:6::MyTestCase::test_failing"
4343
r" - AssertionError: 'foo' != 'bar'\n- foo\n+ bar",
44+
"PASSED test_simple_unittest.py::MyTestCase::testpassing",
4445
"=*= 1 failed, 1 passed in *s =*=",
4546
],
4647
consecutive=True,

0 commit comments

Comments
 (0)