[pypy-svn] r74242 - pypy/trunk/pypy/interpreter/test

fijal at codespeak.net fijal at codespeak.net
Thu Apr 29 21:10:54 CEST 2010


Author: fijal
Date: Thu Apr 29 21:10:26 2010
New Revision: 74242

Modified:
   pypy/trunk/pypy/interpreter/test/test_typedef.py
Log:
Fix nameerror in the test, discover another error


Modified: pypy/trunk/pypy/interpreter/test/test_typedef.py
==============================================================================
--- pypy/trunk/pypy/interpreter/test/test_typedef.py	(original)
+++ pypy/trunk/pypy/interpreter/test/test_typedef.py	Thu Apr 29 21:10:26 2010
@@ -138,9 +138,10 @@
             pass
         def fget(self, space, w_self):
             assert self is prop
+        prop = typedef.GetSetProperty(fget, use_closure=True)
         W_SomeType.typedef = typedef.TypeDef(
             'some_type',
-            x=typedef.GetSetProperty(fget, use_closure=True))
+            x=prop)
         w_obj = self.space.wrap(W_SomeType())
         assert self.space.getattr(w_obj, self.space.wrap('x')) is None
 



More information about the Pypy-commit mailing list