commit | 56af5fcab7e2ad370a1ac8985769108d281b8658 | [log] [tgz] |
---|---|---|
author | Georg Brandl <georg@python.org> | Fri Jul 18 19:30:10 2008 +0000 |
committer | Georg Brandl <georg@python.org> | Fri Jul 18 19:30:10 2008 +0000 |
tree | 7c2534934dfecada7755ef368c3278b1a81dd941 | |
parent | 74bbc79d10862727c9126f4f8d8868c021a389e4 [diff] [blame] |
#3390: replace a remaining has_key().
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 @@ 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