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

fijal at codespeak.net fijal at codespeak.net
Mon Nov 24 12:36:03 CET 2008


Author: fijal
Date: Mon Nov 24 12:36:02 2008
New Revision: 60104

Modified:
   pypy/trunk/lib-python/modified-2.5.2/test/test_support.py
   pypy/trunk/lib-python/modified-2.5.2/test/test_weakref.py
Log:
missing gc.collects


Modified: pypy/trunk/lib-python/modified-2.5.2/test/test_support.py
==============================================================================
--- pypy/trunk/lib-python/modified-2.5.2/test/test_support.py	(original)
+++ pypy/trunk/lib-python/modified-2.5.2/test/test_support.py	Mon Nov 24 12:36:02 2008
@@ -30,7 +30,7 @@
     """
 
 verbose = 1              # Flag set to 0 by regrtest.py
-use_resources = None     # Flag set to [] by regrtest.py
+use_resources = ['urlfetch']     # Flag set to [] by regrtest.py
 max_memuse = 0           # Disable bigmem tests (they will still be run with
                          # small sizes, to make sure they work.)
 

Modified: pypy/trunk/lib-python/modified-2.5.2/test/test_weakref.py
==============================================================================
--- pypy/trunk/lib-python/modified-2.5.2/test/test_weakref.py	(original)
+++ pypy/trunk/lib-python/modified-2.5.2/test/test_weakref.py	Mon Nov 24 12:36:02 2008
@@ -1114,6 +1114,8 @@
 >>> o is o2
 True
 >>> del o, o2
+>>> gc.collect()
+0
 >>> print r()
 None
 
@@ -1151,7 +1153,7 @@
 True
 
 
->>> import weakref
+>>> import weakref, gc
 >>> _id2obj_dict = weakref.WeakValueDictionary()
 >>> def remember(obj):
 ...     oid = id(obj)
@@ -1166,6 +1168,8 @@
 >>> id2obj(a_id) is a
 True
 >>> del a
+>>> gc.collect()
+0
 >>> try:
 ...     id2obj(a_id)
 ... except KeyError:



More information about the Pypy-commit mailing list