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/util.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/util.py')
-rw-r--r-- | Lib/unittest/util.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/unittest/util.py b/Lib/unittest/util.py index 9ddf879..7d90ddf 100644 --- a/Lib/unittest/util.py +++ b/Lib/unittest/util.py @@ -1,5 +1,8 @@ """Various utility functions.""" +__unittest = True + + def safe_repr(obj): try: return repr(obj) |