diff options
| author | Michael Foord <fuzzyman@voidspace.org.uk> | 2010-03-22 00:06:30 (GMT) |
|---|---|---|
| committer | Michael Foord <fuzzyman@voidspace.org.uk> | 2010-03-22 00:06:30 (GMT) |
| commit | b1aa30f94ded4e9d1094ec890758d913b8725085 (patch) | |
| tree | 0b7f5565510f05a8f2b66bb7668f646ec1439632 /Lib/unittest/case.py | |
| parent | bb9d726357854a8dcae597e22d02f5d3a2122431 (diff) | |
| download | cpython-b1aa30f94ded4e9d1094ec890758d913b8725085.zip cpython-b1aa30f94ded4e9d1094ec890758d913b8725085.tar.gz cpython-b1aa30f94ded4e9d1094ec890758d913b8725085.tar.bz2 | |
Issue 7815. __unittest in module globals trims frames from reported stacktraces in unittest.
Diffstat (limited to 'Lib/unittest/case.py')
| -rw-r--r-- | Lib/unittest/case.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/unittest/case.py b/Lib/unittest/case.py index feae3fa..9495689 100644 --- a/Lib/unittest/case.py +++ b/Lib/unittest/case.py @@ -12,6 +12,9 @@ from .util import ( strclass, safe_repr, sorted_list_difference, unorderable_list_difference ) +__unittest = True + + class SkipTest(Exception): """ Raise this exception in a test to skip it. |
