Commit a29a9802 authored by Stefan Behnel's avatar Stefan Behnel

fix Py2.7 warning

parent 16b6170c
...@@ -194,7 +194,7 @@ class _XMLTestResult(_TextTestResult): ...@@ -194,7 +194,7 @@ class _XMLTestResult(_TextTestResult):
module = '' module = ''
testcase_name = module + testcase.__name__ testcase_name = module + testcase.__name__
if not tests_by_testcase.has_key(testcase_name): if testcase_name not in tests_by_testcase:
tests_by_testcase[testcase_name] = [] tests_by_testcase[testcase_name] = []
tests_by_testcase[testcase_name].append(test_info) tests_by_testcase[testcase_name].append(test_info)
......
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