Commit 1cdf9a75 authored by Gediminas Paulauskas's avatar Gediminas Paulauskas

Fix a test broken by a change to randrange in Python 2.7.6

parent a187da03
...@@ -20,7 +20,7 @@ from persistent import Persistent ...@@ -20,7 +20,7 @@ from persistent import Persistent
from zope.testing import renormalizing from zope.testing import renormalizing
from ZODB.utils import U64, p64, u64 from ZODB.utils import U64, p64, u64
from ZODB._compat import loads, long from ZODB._compat import loads
NUM = 100 NUM = 100
...@@ -35,9 +35,9 @@ checker = renormalizing.RENormalizing([ ...@@ -35,9 +35,9 @@ checker = renormalizing.RENormalizing([
class TestUtils(unittest.TestCase): class TestUtils(unittest.TestCase):
small = [random.randrange(1, 1<<32, int=long) small = [random.randrange(1, 1<<32)
for i in range(NUM)] for i in range(NUM)]
large = [random.randrange(1<<32, 1<<64, int=long) large = [random.randrange(1<<32, 1<<64)
for i in range(NUM)] for i in range(NUM)]
all = small + large all = small + large
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment