Commit d0460f8e authored by mergify[bot]'s avatar mergify[bot] Committed by GitHub

Merge pull request #1883 from jdufresne/test-exit

Remove outdated comment and suppressed exception from test_test.py
parents e81a2013 4069e0b5
......@@ -86,9 +86,7 @@ def test_test(capfd):
dist.script_name = 'setup.py'
cmd = test(dist)
cmd.ensure_finalized()
# The test runner calls sys.exit
with contexts.suppress_exceptions(SystemExit):
cmd.run()
cmd.run()
out, err = capfd.readouterr()
assert out == 'Foo\n'
......@@ -120,9 +118,7 @@ def test_tests_are_run_once(capfd):
dist.script_name = 'setup.py'
cmd = test(dist)
cmd.ensure_finalized()
# The test runner calls sys.exit
with contexts.suppress_exceptions(SystemExit):
cmd.run()
cmd.run()
out, err = capfd.readouterr()
assert out == 'Foo\n'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment