]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
remove unneeded division
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 26 May 2007 22:21:31 +0000 (22:21 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 26 May 2007 22:21:31 +0000 (22:21 +0000)
test/perf/masseagerload.py

index 01aa7cf9ed0be8255fdaa9ba6eeeb88c66f06eb4..d4076f5ba91382e13df8df7617fb8d98e8670f07 100644 (file)
@@ -36,8 +36,8 @@ class LoadTest(AssertMixin):
         items.insert().execute(*l)
         for x in range(1, NUM/DIVISOR + 1):
             l = []
-            for y in range(1, NUM/(NUM/DIVISOR) + 1):
-                z = ((x-1) * NUM/(NUM/DIVISOR)) + y
+            for y in range(1, DIVISOR + 1):
+                z = ((x-1) * DIVISOR) + y
                 l.append({'sub_id':z,'value':'this is iteim #%d' % z, 'parent_id':x})
             #print l
             subitems.insert().execute(*l)