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/loader.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/loader.py')
-rw-r--r-- | Lib/unittest/loader.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/unittest/loader.py b/Lib/unittest/loader.py index 9eede8b..d6c8d84 100644 --- a/Lib/unittest/loader.py +++ b/Lib/unittest/loader.py @@ -10,6 +10,8 @@ from fnmatch import fnmatch from . import case, suite +__unittest = True + def _CmpToKey(mycmp): 'Convert a cmp= function into a key= function' |