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
75fd5af5
Commit
75fd5af5
authored
Oct 22, 2018
by
Jason Madden
Committed by
GitHub
Oct 22, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #97 from zopefoundation/issue96
Update tests for persistent 4.4.3
parents
2c430dd2
cd197117
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
9 deletions
+8
-9
BTrees/tests/common.py
BTrees/tests/common.py
+7
-8
setup.py
setup.py
+1
-1
No files found.
BTrees/tests/common.py
View file @
75fd5af5
...
@@ -376,11 +376,10 @@ class MappingBase(Base):
...
@@ -376,11 +376,10 @@ class MappingBase(Base):
self
.
assertTrue
(
r
.
endswith
(
repr
(
t
.
items
())
+
')'
),
r
)
self
.
assertTrue
(
r
.
endswith
(
repr
(
t
.
items
())
+
')'
),
r
)
else
:
else
:
# persistent-4.4 changed the default reprs, adding
# persistent-4.4 changed the default reprs, adding
# oid and jar reprs
, but eliminating the module prefix
# oid and jar reprs
# in one implementation
self
.
assertIn
(
"<BTrees."
,
r
)
self
.
assertIn
(
'BTree object at'
,
r
)
self
.
assertIn
(
'BTree object at'
,
r
)
self
.
assertIn
(
'oid'
,
r
)
self
.
assertIn
(
'oid 0x3132333435363738'
,
r
)
self
.
assertIn
(
'12345678'
,
r
)
# Make sure it's the same between Python and C
# Make sure it's the same between Python and C
self
.
assertNotIn
(
'Py'
,
r
)
self
.
assertNotIn
(
'Py'
,
r
)
...
@@ -1396,11 +1395,11 @@ class NormalSetTests(Base):
...
@@ -1396,11 +1395,11 @@ class NormalSetTests(Base):
self
.
assertTrue
(
r
.
endswith
(
"Set(%r)"
%
t
.
keys
()))
self
.
assertTrue
(
r
.
endswith
(
"Set(%r)"
%
t
.
keys
()))
else
:
else
:
# persistent-4.4 changed the default reprs, adding
# persistent-4.4 changed the default reprs, adding
# oid and jar reprs
, but eliminating the module prefix
# oid and jar reprs
# in one implementation
self
.
assertIn
(
"<BTrees."
,
r
)
self
.
assertIn
(
'TreeSet object at'
,
r
)
self
.
assertIn
(
'TreeSet object at'
,
r
)
self
.
assertIn
(
'oid'
,
r
)
self
.
assertIn
(
'oid
0x3132333435363738
'
,
r
)
self
.
assertIn
(
'12345678'
,
r
)
# Make sure it's the same between Python and C
# Make sure it's the same between Python and C
self
.
assertNotIn
(
'Py'
,
r
)
self
.
assertNotIn
(
'Py'
,
r
)
...
...
setup.py
View file @
75fd5af5
...
@@ -140,7 +140,7 @@ REQUIRES = [
...
@@ -140,7 +140,7 @@ REQUIRES = [
TESTS_REQUIRE
=
[
TESTS_REQUIRE
=
[
# Our tests check for the new repr strings
# Our tests check for the new repr strings
# generated in persistent 4.4.
# generated in persistent 4.4.
'persistent >= 4.4.
2
'
,
'persistent >= 4.4.
3
'
,
'transaction'
,
'transaction'
,
'zope.testrunner'
,
'zope.testrunner'
,
]
]
...
...
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