[pypy-svn] r2954 - pypy/trunk/src/pypy/module/test

arigo at codespeak.net arigo at codespeak.net
Thu Feb 12 01:03:53 CET 2004

Author: arigo
Date: Thu Feb 12 01:03:53 2004
New Revision: 2954

Fixed an error for Python cvs head, in which support for recursive comparison
has been removed (something which I am to blame for, incidentally :-)

Strangely, __builtins__ end up containing itself in '__builtins__', hence the
infinite recursion problem that this patch removes.  The reason is that we run
a lot of stuff in the __builtin__ module itself at initialization time.

Modified: pypy/trunk/src/pypy/module/test/test_builtin.py
--- pypy/trunk/src/pypy/module/test/test_builtin.py	(original)
+++ pypy/trunk/src/pypy/module/test/test_builtin.py	Thu Feb 12 01:03:53 2004
@@ -33,7 +33,7 @@
         d = {"foo":"bar"}
         exec "def f(): return globals()" in d
         d2 = d["f"]()
-        self.assertEquals(d2,d)
+        self.assert_(d2 is d)
     def test_locals(self):
         def f():

More information about the Pypy-commit mailing list