From: Stefan Behnel Date: Fri, 28 Jan 2011 17:51:33 +0000 (+0100) Subject: fix Py2.7 warning X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a29a9802a90e9572e95f3cf6479c932fce2b01a4;p=cython.git fix Py2.7 warning --- diff --git a/Cython/Tests/xmlrunner.py b/Cython/Tests/xmlrunner.py index a4316f35..71f6880a 100644 --- a/Cython/Tests/xmlrunner.py +++ b/Cython/Tests/xmlrunner.py @@ -194,7 +194,7 @@ class _XMLTestResult(_TextTestResult): module = '' 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].append(test_info)