Skip to content

Commit

Permalink
Add coverage for belt-and-suspenders in 'WeakRef.__eq__'.
Browse files Browse the repository at this point in the history
  • Loading branch information
tseaver committed Apr 11, 2016
1 parent 472b3e9 commit 93b8be9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions persistent/tests/test_wref.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ def test___eq___w_non_weakref(self):
target = _makeTarget()
lhs = self._makeOne(target)
self.assertNotEqual(lhs, object())
# Test belt-and-suspenders directly
self.assertFalse(lhs.__eq__(object()))

def test___eq___w_both_same_target(self):
target = _makeTarget()
Expand Down

0 comments on commit 93b8be9

Please sign in to comment.