Merge pull request #5653 from blueyed/fix-test
Followup: unittest: handle outcomes.Exit
This commit is contained in:
commit
880e368607
|
@ -1 +1,2 @@
|
||||||
``pytest.exit`` and ``bdb.BdbQuit`` are now correctly handled in ``unittest`` cases.
|
``pytest.exit`` is now correctly handled in ``unittest`` cases.
|
||||||
|
This makes ``unittest`` cases handle ``quit`` from pytest's pdb correctly.
|
||||||
|
|
|
@ -1085,4 +1085,4 @@ def test_exit_outcome(testdir):
|
||||||
"""
|
"""
|
||||||
)
|
)
|
||||||
result = testdir.runpytest()
|
result = testdir.runpytest()
|
||||||
result.stdout.fnmatch_lines("*Exit: pytest_exit called*")
|
result.stdout.fnmatch_lines(["*Exit: pytest_exit called*", "*= no tests ran in *"])
|
||||||
|
|
Loading…
Reference in New Issue