From a29a9802a90e9572e95f3cf6479c932fce2b01a4 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Fri, 28 Jan 2011 18:51:33 +0100 Subject: [PATCH] fix Py2.7 warning --- Cython/Tests/xmlrunner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.26.2