We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d35d09f commit 0824789Copy full SHA for 0824789
testing/test_unittest.py
@@ -1078,11 +1078,11 @@ def test_exit_outcome(testdir):
1078
1079
class MyTestCase(unittest.TestCase):
1080
def test_exit_outcome(self):
1081
- pytest.exit("pytest_exit")
+ pytest.exit("pytest_exit called")
1082
1083
def test_should_not_run(self):
1084
pass
1085
"""
1086
)
1087
- reprec = testdir.inline_run()
1088
- reprec.assertoutcome()
+ result = testdir.runpytest()
+ result.stdout.fnmatch_lines("*Exit: pytest_exit called*")
0 commit comments