Skip to content

Commit

Permalink
Fix test on PyPy
Browse files Browse the repository at this point in the history
  • Loading branch information
jamadden committed Mar 10, 2021
1 parent 3a17b12 commit 65e8ea1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion persistent/tests/test_picklecache.py
Expand Up @@ -1136,7 +1136,8 @@ def new_hook(unraisable):
o = cache[oid] = self._makePersist(oid=oid)
# Clear the dict, or at least part of it.
# This is coupled to ``cleanup_hook``
del cache.data._addr_to_oid
if cache.data.cleanup_hook:
del cache.data._addr_to_oid
del cache[oid]

self.assertEqual(unraised, [])
Expand Down

0 comments on commit 65e8ea1

Please sign in to comment.