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
a2c8eb23
Commit
a2c8eb23
authored
Aug 18, 2016
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
conditionally disable a part of a test that can't pass on 32-bit systems
parent
8b000381
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
src/ZODB/tests/testConnection.py
src/ZODB/tests/testConnection.py
+9
-7
No files found.
src/ZODB/tests/testConnection.py
View file @
a2c8eb23
...
...
@@ -17,6 +17,7 @@ from __future__ import print_function
import
doctest
import
re
import
six
import
sys
import
unittest
import
transaction
...
...
@@ -1140,13 +1141,14 @@ class EstimatedSizeTests(ZODB.tests.util.TestCase):
# ... on connectionB
conn
=
db
.
open
()
self
.
assertEqual
(
conn
.
_cache
.
cache_size_bytes
,
expected
)
# test huge (larger than 4 byte) size limit
db
=
databaseFromString
(
"<zodb>
\
n
"
" cache-size-bytes 8GB
\
n
"
" <mappingstorage />
\
n
"
"</zodb>"
)
self
.
assertEqual
(
db
.
getCacheSizeBytes
(),
0x1
<<
33
)
# test huge (larger than 4 byte) size limit (if possible)
if
sys
.
maxsize
>
(
0x1
<<
33
):
db
=
databaseFromString
(
"<zodb>
\
n
"
" cache-size-bytes 8GB
\
n
"
" <mappingstorage />
\
n
"
"</zodb>"
)
self
.
assertEqual
(
db
.
getCacheSizeBytes
(),
0x1
<<
33
)
def
test_cache_garbage_collection
(
self
):
...
...
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