Fix pithos testcase that runs out of memory
authorDionysis Zindros <dionyziz@gmail.com>
Tue, 4 Dec 2012 16:46:48 +0000 (11:46 -0500)
committerDionysis Zindros <dionyziz@gmail.com>
Tue, 4 Dec 2012 16:46:48 +0000 (11:46 -0500)
kamaki/clients/tests.py

index 62e93f0..b9a4adc 100644 (file)
@@ -2313,7 +2313,7 @@ class testPithos(unittest.TestCase):
         f = open(self.fname, 'w')
         sys.stdout.write(
             ' create random file %s of size %s      ' % (name, size))
-        for hobyte_id in range(size / 8):
+        for hobyte_id in xrange(size / 8):
             #sss = 'hobt%s' % random.randint(1000, 9999)
             f.write(rf.read(8))
             if 0 == (hobyte_id * 800) % size: