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/runner.py b/Lib/unittest/runner.py index 2fe01f6..f9e1995 100644 --- a/Lib/unittest/runner.py +++ b/Lib/unittest/runner.py
@@ -5,6 +5,8 @@ from . import result +__unittest = True + class _WritelnDecorator(object): """Used to decorate file-like objects with a handy 'writeln' method"""