We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a7f1cb0 commit abac3b6Copy full SHA for abac3b6
future/tests/test_magicsuper.py
@@ -65,7 +65,10 @@ def not_a_method():
65
self.assertRaises(RuntimeError,not_a_method)
66
def not_a_method(self):
67
super().not_a_method()
68
- self.assertRaises(RuntimeError,not_a_method,self)
+ if utils.PY2:
69
+ self.assertRaises(RuntimeError,not_a_method,self)
70
+ else:
71
+ self.assertRaises(AttributeError,not_a_method,self)
72
73
def assertSuperEquals(self,sobj1,sobj2):
74
assert sobj1.__self__ is sobj2.__self__
0 commit comments