Commit 93b8be95 authored by Tres Seaver's avatar Tres Seaver

Add coverage for belt-and-suspenders in 'WeakRef.__eq__'.

parent 472b3e98
......@@ -80,6 +80,8 @@ class WeakRefTests(unittest.TestCase):
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()
......
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