From: Mike Bayer Date: Sat, 26 May 2007 22:20:29 +0000 (+0000) Subject: i just re-took 7th grade, helped a million X-Git-Tag: rel_0_4_6~236 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8f8d30fae0d631936a85ccb9db74cfe6713326f3;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git i just re-took 7th grade, helped a million --- diff --git a/test/perf/masseagerload.py b/test/perf/masseagerload.py index 01aa7cf9ed..d4076f5ba9 100644 --- a/test/perf/masseagerload.py +++ b/test/perf/masseagerload.py @@ -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)