[pypy-svn] r12389 - pypy/dist/pypy/translator/test

arigo at codespeak.net arigo at codespeak.net
Mon May 16 20:59:39 CEST 2005


Author: arigo
Date: Mon May 16 20:59:39 2005
New Revision: 12389

Modified:
   pypy/dist/pypy/translator/test/test_annrpython.py
Log:
Fixed the test, failing after the addition of the .const attribute in
the result computed by the annotator.


Modified: pypy/dist/pypy/translator/test/test_annrpython.py
==============================================================================
--- pypy/dist/pypy/translator/test/test_annrpython.py	(original)
+++ pypy/dist/pypy/translator/test/test_annrpython.py	Mon May 16 20:59:39 2005
@@ -703,7 +703,8 @@
         a = self.RPythonAnnotator()
         s = a.build_types(lambda: myobj, [])
         assert myobj.called
-        assert s == annmodel.SomeInstance(a.bookkeeper.getclassdef(Stuff))
+        assert isinstance(s, annmodel.SomeInstance)
+        assert s.classdef is a.bookkeeper.getclassdef(Stuff)
 
     def test_circular_mutable_getattr(self):
         class C:



More information about the Pypy-commit mailing list