summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2016-12-26 07:18:13 -0500
committerNed Batchelder <ned@nedbatchelder.com>2016-12-26 07:18:13 -0500
commit23e043d78879a75b09a5eb90fe096e4c2771326f (patch)
tree3855047e128f4ce0781e26f49fb5ff0d9296e94e
parent680d6642f1b05a3011be30b490ff6fa0c6875f09 (diff)
downloadpython-coveragepy-23e043d78879a75b09a5eb90fe096e4c2771326f.tar.gz
Put the excepthook tests in their own class for convenience
-rw-r--r--tests/test_process.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/test_process.py b/tests/test_process.py
index 2e94c19..a714862 100644
--- a/tests/test_process.py
+++ b/tests/test_process.py
@@ -788,6 +788,10 @@ class ProcessTest(CoverageTest):
out = self.run_command("python -m coverage")
self.assertIn("Use 'coverage help' for help", out)
+
+class ExcepthookTest(CoverageTest):
+ """Tests of sys.excepthook support."""
+
def test_excepthook(self):
self.make_file("test_excepthook.py", """\
import sys
@@ -848,7 +852,6 @@ class ProcessTest(CoverageTest):
self.assertEqual(cov_out, py_out)
-
class AliasedCommandTest(CoverageTest):
"""Tests of the version-specific command aliases."""