Commit 89a91970 authored by Jason Madden's avatar Jason Madden

Use _p_deactivate unconditionally in test_del_jar_of_inactive_object. I'm not...

Use _p_deactivate unconditionally in test_del_jar_of_inactive_object. I'm not sure why I was reaching into the internals of the Python implementation.
parent 7d4fc30e
......@@ -146,11 +146,7 @@ class _Persistent_Base(object):
inst._p_jar = broken_jar
# make it inactive
if hasattr(inst, '_Persistent__flags'):
# Python version
inst._Persistent__flags = None
else:
inst._p_deactivate()
inst._p_deactivate()
self.assertEqual(inst._p_status, "ghost")
# delete the jar; if we activated the object, the broken
......
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