summaryrefslogtreecommitdiff
path: root/setuptools
diff options
context:
space:
mode:
authormergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2019-10-22 14:33:21 +0000
committerGitHub <noreply@github.com>2019-10-22 14:33:21 +0000
commitd0460f8e64d5d416e3afe2903129824b97b37e18 (patch)
tree196a7577d3f79050b840acf1d54181a1eee58cc0 /setuptools
parente81a2013703111888833446e412d6b67e6203e84 (diff)
parent4069e0b536802a47c8c15ce839fd98a5f4c84620 (diff)
downloadpython-setuptools-git-d0460f8e64d5d416e3afe2903129824b97b37e18.tar.gz
Merge pull request #1883 from jdufresne/test-exit
Remove outdated comment and suppressed exception from test_test.py
Diffstat (limited to 'setuptools')
-rw-r--r--setuptools/tests/test_test.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/setuptools/tests/test_test.py b/setuptools/tests/test_test.py
index 280c837b..6242a018 100644
--- a/setuptools/tests/test_test.py
+++ b/setuptools/tests/test_test.py
@@ -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'