Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZODB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
ZODB
Commits
1cdf9a75
Commit
1cdf9a75
authored
Dec 17, 2013
by
Gediminas Paulauskas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a test broken by a change to randrange in Python 2.7.6
parent
a187da03
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/ZODB/tests/testUtils.py
src/ZODB/tests/testUtils.py
+3
-3
No files found.
src/ZODB/tests/testUtils.py
View file @
1cdf9a75
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment