summaryrefslogtreecommitdiff
path: root/Lib/unittest/runner.py
diff options
context:
space:
mode:
authorMichael Foord <fuzzyman@voidspace.org.uk>2010-03-22 00:06:30 +0000
committerMichael Foord <fuzzyman@voidspace.org.uk>2010-03-22 00:06:30 +0000
commitb1aa30f94ded4e9d1094ec890758d913b8725085 (patch)
tree0b7f5565510f05a8f2b66bb7668f646ec1439632 /Lib/unittest/runner.py
parentbb9d726357854a8dcae597e22d02f5d3a2122431 (diff)
downloadcpython-git-b1aa30f94ded4e9d1094ec890758d913b8725085.tar.gz
Issue 7815. __unittest in module globals trims frames from reported stacktraces in unittest.
Diffstat (limited to 'Lib/unittest/runner.py')
-rw-r--r--Lib/unittest/runner.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/unittest/runner.py b/Lib/unittest/runner.py
index 2fe01f6727..f9e199548f 100644
--- a/Lib/unittest/runner.py
+++ b/Lib/unittest/runner.py
@@ -5,6 +5,8 @@ import time
from . import result
+__unittest = True
+
class _WritelnDecorator(object):
"""Used to decorate file-like objects with a handy 'writeln' method"""