]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
tweak
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 10 May 2008 23:15:13 +0000 (23:15 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 10 May 2008 23:15:13 +0000 (23:15 +0000)
test/orm/memusage.py

index 2ce94c1f593d8da9a3930f91383d0a9b10049332..6348f22371be9de97029916d47ffe58059a47391 100644 (file)
@@ -18,6 +18,7 @@ def profile_memory(func):
     # run the test 50 times.  if length of gc.get_objects()
     # keeps growing, assert false
     def profile(*args):
+        gc.collect()
         samples = [0 for x in range(0, 50)]
         for x in range(0, 50):
             func(*args)