[py-svn] r34653 - in py/dist/py/apigen/tracer: . testing
fijal at codespeak.net
fijal at codespeak.net
Thu Nov 16 10:39:28 CET 2006
Author: fijal
Date: Thu Nov 16 10:39:26 2006
New Revision: 34653
Modified:
py/dist/py/apigen/tracer/description.py
py/dist/py/apigen/tracer/testing/test_desc.py
Log:
Fix for guido's test.
Modified: py/dist/py/apigen/tracer/description.py
==============================================================================
--- py/dist/py/apigen/tracer/description.py (original)
+++ py/dist/py/apigen/tracer/description.py Thu Nov 16 10:39:26 2006
@@ -103,9 +103,9 @@
def __eq__(self, other):
if isinstance(other, Desc):
- return self.code is other.code
+ return self.code == other.code
if isinstance(other, types.CodeType):
- return self.code is other
+ return self.code == other
if isinstance(other, tuple) and len(other) == 2:
return self.code == other
return False
Modified: py/dist/py/apigen/tracer/testing/test_desc.py
==============================================================================
--- py/dist/py/apigen/tracer/testing/test_desc.py (original)
+++ py/dist/py/apigen/tracer/testing/test_desc.py Thu Nov 16 10:39:26 2006
@@ -25,5 +25,4 @@
assert hash(ClassDesc("d", D).code)
def test_eq():
- py.test.skip('fijal, please fix ;)')
assert ClassDesc('a', A) == ClassDesc('a', A)
More information about the py-svn
mailing list