Commit cd197117 authored by Jason Madden's avatar Jason Madden

Update tests for persistent 4.4.3

parent 2c430dd2
...@@ -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