[pypy-svn] r59551 - pypy/trunk/lib-python/modified-2.5.2/test

arigo at codespeak.net arigo at codespeak.net
Thu Oct 30 12:53:21 CET 2008


Author: arigo
Date: Thu Oct 30 12:53:20 2008
New Revision: 59551

Modified:
   pypy/trunk/lib-python/modified-2.5.2/test/test_descr.py
Log:
Generalize this check.


Modified: pypy/trunk/lib-python/modified-2.5.2/test/test_descr.py
==============================================================================
--- pypy/trunk/lib-python/modified-2.5.2/test/test_descr.py	(original)
+++ pypy/trunk/lib-python/modified-2.5.2/test/test_descr.py	Thu Oct 30 12:53:20 2008
@@ -3466,7 +3466,7 @@
     vereq(hasattr(m, "__name__"), 0)
     vereq(hasattr(m, "__file__"), 0)
     vereq(hasattr(m, "foo"), 0)
-    vereq(m.__dict__, None)
+    assert not m.__dict__     # None or {} are both reasonable answers
     m.foo = 1
     vereq(m.__dict__, {"foo": 1})
 



More information about the Pypy-commit mailing list