Commit 56af5fca authored by Georg Brandl's avatar Georg Brandl

#3390: replace a remaining has_key().

parent 74bbc79d
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment