diff options
author | Georg Brandl <georg@python.org> | 2008-07-18 19:30:10 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2008-07-18 19:30:10 (GMT) |
commit | 56af5fcab7e2ad370a1ac8985769108d281b8658 (patch) | |
tree | 7c2534934dfecada7755ef368c3278b1a81dd941 /Lib/unittest.py | |
parent | 74bbc79d10862727c9126f4f8d8868c021a389e4 (diff) | |
download | cpython-56af5fcab7e2ad370a1ac8985769108d281b8658.zip cpython-56af5fcab7e2ad370a1ac8985769108d281b8658.tar.gz cpython-56af5fcab7e2ad370a1ac8985769108d281b8658.tar.bz2 |
#3390: replace a remaining has_key().
Diffstat (limited to 'Lib/unittest.py')
-rw-r--r-- | Lib/unittest.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/unittest.py b/Lib/unittest.py index b5c6bef..b5a1a4b 100644 --- a/Lib/unittest.py +++ b/Lib/unittest.py @@ -160,7 +160,7 @@ class TestResult: return ''.join(traceback.format_exception(exctype, value, tb)) def _is_relevant_tb_level(self, tb): - return tb.tb_frame.f_globals.has_key('__unittest') + return '__unittest' in tb.tb_frame.f_globals def _count_relevant_tb_levels(self, tb): length = 0 |