Commit 75fd5af5 authored by Jason Madden's avatar Jason Madden Committed by GitHub

Merge pull request #97 from zopefoundation/issue96

Update tests for persistent 4.4.3
parents 2c430dd2 cd197117
...@@ -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)
......
...@@ -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',
] ]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment