projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
16b6170
)
fix Py2.7 warning
author
Stefan Behnel
<scoder@users.berlios.de>
Fri, 28 Jan 2011 17:51:33 +0000
(18:51 +0100)
committer
Stefan Behnel
<scoder@users.berlios.de>
Fri, 28 Jan 2011 17:51:33 +0000
(18:51 +0100)
Cython/Tests/xmlrunner.py
patch
|
blob
|
history
diff --git
a/Cython/Tests/xmlrunner.py
b/Cython/Tests/xmlrunner.py
index a4316f3517b6a2f407a8f9bf01b011dae4d922a6..71f6880adb903913afdcf75d3d75ba4f722dbac5 100644
(file)
--- 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)