commit | b1aa30f94ded4e9d1094ec890758d913b8725085 | [log] [tgz] |
---|---|---|
author | Michael Foord <fuzzyman@voidspace.org.uk> | Mon Mar 22 00:06:30 2010 +0000 |
committer | Michael Foord <fuzzyman@voidspace.org.uk> | Mon Mar 22 00:06:30 2010 +0000 |
tree | 0b7f5565510f05a8f2b66bb7668f646ec1439632 | |
parent | bb9d726357854a8dcae597e22d02f5d3a2122431 [diff] [blame] |
Issue 7815. __unittest in module globals trims frames from reported stacktraces in unittest.
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 @@ strclass, safe_repr, sorted_list_difference, unorderable_list_difference ) +__unittest = True + + class SkipTest(Exception): """ Raise this exception in a test to skip it.