summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorjason kirtland <jek@discorporate.us>2010-03-28 09:46:15 -0700
committerjason kirtland <jek@discorporate.us>2010-03-28 09:46:15 -0700
commitca66102f54e250f0bc1c8b37901662ea444ea48a (patch)
tree104e24499efe1454f4b06d881e573f313b599975 /tests
parent2f20ee18d6f2d20e65682e35357112a33ff56148 (diff)
downloadblinker-ca66102f54e250f0bc1c8b37901662ea444ea48a.tar.gz
Fixed weak instancemethod refs for Python 3
Diffstat (limited to 'tests')
-rw-r--r--tests/test_saferef.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/test_saferef.py b/tests/test_saferef.py
index 3886a9e..0517fe5 100644
--- a/tests/test_saferef.py
+++ b/tests/test_saferef.py
@@ -99,9 +99,9 @@ class TestSaferef(unittest.TestCase):
sd[s] = 1
for t in self.ts:
if hasattr(t, 'x'):
- assert sd.has_key(safe_ref(t.x))
+ assert safe_ref(t.x) in sd
else:
- assert sd.has_key(safe_ref(t))
+ assert safe_ref(t) in sd
def test_Representation(self):
"""Test that the reference object's representation works
@@ -114,4 +114,3 @@ class TestSaferef(unittest.TestCase):
def _closure(self, ref):
"""Dumb utility mechanism to increment deletion counter"""
self.closure_count += 1
-