Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
BTrees
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
BTrees
Commits
b49be3c9
Commit
b49be3c9
authored
Jan 05, 2015
by
Tres Seaver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Suppress testing 64-bit values in OLBTrees on 32 bit machines.
Fixes #9 (I hope).
parent
8a53dd40
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
1 deletion
+14
-1
BTrees/tests/common.py
BTrees/tests/common.py
+10
-0
BTrees/tests/test_OLBTree.py
BTrees/tests/test_OLBTree.py
+2
-0
CHANGES.rst
CHANGES.rst
+2
-1
No files found.
BTrees/tests/common.py
View file @
b49be3c9
...
...
@@ -12,6 +12,9 @@
#
##############################################################################
import
platform
def
_skip_wo_ZODB
(
test_method
):
#pragma NO COVER
try
:
import
ZODB
...
...
@@ -32,6 +35,13 @@ def _skip_under_Py3k(test_method): #pragma NO COVER
else
:
return
test_method
def
_skip_on_32_bits
(
test_method
):
#pragma NO COVER
if
platform
.
architecture
()[
0
]
==
'32bit'
:
def
_dummy
(
*
args
):
pass
return
_dummy
return
test_method
class
Base
(
object
):
# Tests common to all types: sets, buckets, and BTrees
...
...
BTrees/tests/test_OLBTree.py
View file @
b49be3c9
...
...
@@ -27,6 +27,7 @@ from .common import TestLongIntValues
from
.common
import
Weighted
from
.common
import
itemsToSet
from
.common
import
makeBuilder
from
.common
import
_skip_on_32_bits
class
OLBTreeInternalKeyTest
(
InternalKeysMappingTest
,
unittest
.
TestCase
):
...
...
@@ -108,6 +109,7 @@ class OLBTreeTest(BTreeTests, TestLongIntValues, unittest.TestCase):
def
getTwoKeys
(
self
):
return
"abc"
,
"def"
@
_skip_on_32_bits
def
test_extremes
(
self
):
from
BTrees.tests.common
import
SMALLEST_64_BITS
from
BTrees.tests.common
import
SMALLEST_POSITIVE_65_BITS
...
...
CHANGES.rst
View file @
b49be3c9
...
...
@@ -4,7 +4,8 @@
4.1.2 (unreleased)
------------------
- TBD
- Suppress testing 64-bit values in OLBTrees on 32 bit machines.
See: https://github.com/zopefoundation/BTrees/issues/9
4.1.1 (2014-12-27)
...
...
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