Skip to content

Commit

Permalink
Merge cd19711 into 2c430dd
Browse files Browse the repository at this point in the history
  • Loading branch information
jamadden committed Oct 22, 2018
2 parents 2c430dd + cd19711 commit 2e99848
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
15 changes: 7 additions & 8 deletions BTrees/tests/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,11 +376,10 @@ def testShortRepr(self):
self.assertTrue(r.endswith(repr(t.items()) + ')'), r)
else:
# persistent-4.4 changed the default reprs, adding
# oid and jar reprs, but eliminating the module prefix
# in one implementation
# oid and jar reprs
self.assertIn("<BTrees.", r)
self.assertIn('BTree object at', r)
self.assertIn('oid', r)
self.assertIn('12345678', r)
self.assertIn('oid 0x3132333435363738', r)

# Make sure it's the same between Python and C
self.assertNotIn('Py', r)
Expand Down Expand Up @@ -1396,11 +1395,11 @@ def testShortRepr(self):
self.assertTrue(r.endswith("Set(%r)" % t.keys()))
else:
# persistent-4.4 changed the default reprs, adding
# oid and jar reprs, but eliminating the module prefix
# in one implementation
# oid and jar reprs
self.assertIn("<BTrees.", r)
self.assertIn('TreeSet object at', r)
self.assertIn('oid', r)
self.assertIn('12345678', r)
self.assertIn('oid 0x3132333435363738', r)

# Make sure it's the same between Python and C
self.assertNotIn('Py', r)

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def BTreeExtension(family):
TESTS_REQUIRE = [
# Our tests check for the new repr strings
# generated in persistent 4.4.
'persistent >= 4.4.2',
'persistent >= 4.4.3',
'transaction',
'zope.testrunner',
]
Expand Down

0 comments on commit 2e99848

Please sign in to comment.