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

mwh at codespeak.net mwh at codespeak.net
Wed Feb 14 12:47:49 CET 2007


Author: mwh
Date: Wed Feb 14 12:47:49 2007
New Revision: 38804

Modified:
   pypy/dist/lib-python/modified-2.4.1/test/test_descr.py
Log:
remove function level imports of gc now it's imported at module level.


Modified: pypy/dist/lib-python/modified-2.4.1/test/test_descr.py
==============================================================================
--- pypy/dist/lib-python/modified-2.4.1/test/test_descr.py	(original)
+++ pypy/dist/lib-python/modified-2.4.1/test/test_descr.py	Wed Feb 14 12:47:49 2007
@@ -1193,7 +1193,6 @@
     gc.collect()
     vereq(Counted.counter, 1)
     s = None
-    import gc
     gc.collect()
     gc.collect()
     gc.collect()
@@ -2962,7 +2961,6 @@
         raise TestFailed, "d.foo should be undefined now"
 
     # Test a nasty bug in recurse_down_subclasses()
-    import gc
     class A(object):
         pass
     class B(A):
@@ -3895,7 +3893,7 @@
 
     vereq(c.attr, 1)
     # this makes a crash more likely:
-    import gc; gc.collect()
+    gc.collect()
     vereq(hasattr(c, 'attr'), False)
 
 import warnings



More information about the Pypy-commit mailing list