summaryrefslogtreecommitdiffstats
path: root/Lib/unittest/util.py
diff options
context:
space:
mode:
authorMichael Foord <fuzzyman@voidspace.org.uk>2010-03-22 00:06:30 (GMT)
committerMichael Foord <fuzzyman@voidspace.org.uk>2010-03-22 00:06:30 (GMT)
commitb1aa30f94ded4e9d1094ec890758d913b8725085 (patch)
tree0b7f5565510f05a8f2b66bb7668f646ec1439632 /Lib/unittest/util.py
parentbb9d726357854a8dcae597e22d02f5d3a2122431 (diff)
downloadcpython-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.py3
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)