[pypy-svn] r14135 - pypy/branch/dist-2.4.1/lib-python/modified-2.4.1/test

ac at codespeak.net ac at codespeak.net
Sun Jul 3 14:37:03 CEST 2005


Author: ac
Date: Sun Jul  3 14:37:02 2005
New Revision: 14135

Added:
   pypy/branch/dist-2.4.1/lib-python/modified-2.4.1/test/test_module.py
      - copied, changed from r14133, pypy/branch/dist-2.4.1/lib-python/2.4.1/test/test_module.py
Log:
An uninitialized modules __dict__ can be an empty dict in PyPy.
Change the test acordingly.



Copied: pypy/branch/dist-2.4.1/lib-python/modified-2.4.1/test/test_module.py (from r14133, pypy/branch/dist-2.4.1/lib-python/2.4.1/test/test_module.py)
==============================================================================
--- pypy/branch/dist-2.4.1/lib-python/2.4.1/test/test_module.py	(original)
+++ pypy/branch/dist-2.4.1/lib-python/modified-2.4.1/test/test_module.py	Sun Jul  3 14:37:02 2005
@@ -7,7 +7,7 @@
 
 # An uninitialized module has no __dict__ or __name__, and __doc__ is None
 foo = module.__new__(module)
-verify(foo.__dict__ is None)
+verify(not foo.__dict__)
 try:
     s = foo.__name__
 except AttributeError:



More information about the Pypy-commit mailing list