mirror of
https://github.com/django/django.git
synced 2025-08-04 19:08:28 +00:00
[py3] Fixed dispatch tests
This commit is contained in:
parent
27192564c3
commit
60f5e10230
2 changed files with 4 additions and 4 deletions
|
@ -54,10 +54,8 @@ class SaferefTests(unittest.TestCase):
|
|||
sd[s] = 1
|
||||
for t in self.ts:
|
||||
if hasattr(t, 'x'):
|
||||
self.assertTrue(sd.has_key(safeRef(t.x)))
|
||||
self.assertTrue(safeRef(t.x) in sd)
|
||||
else:
|
||||
self.assertTrue(sd.has_key(safeRef(t)))
|
||||
self.assertTrue(safeRef(t) in sd)
|
||||
|
||||
def testRepresentation(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue