Skip to content

Commit

Permalink
Use _p_deactivate unconditionally in test_del_jar_of_inactive_object.…
Browse files Browse the repository at this point in the history
… I'm not sure why I was reaching into the internals of the Python implementation.
  • Loading branch information
jamadden committed May 19, 2015
1 parent 7d4fc30 commit 89a9197
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions persistent/tests/test_persistence.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,11 +146,7 @@ def test_del_jar_of_inactive_object_that_has_no_state(self):
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
Expand Down

0 comments on commit 89a9197

Please sign in to comment.