There was an error while loading. Please reload this page.
1 parent 2b80cb2 commit 909c48eCopy full SHA for 909c48e
1 file changed
Lib/test/test_call.py
@@ -1014,6 +1014,10 @@ def test_unbound_method_with_self_keeps_missing_argument_error(self):
1014
with self.check_raises_type_error(msg):
1015
Dog.sit()
1016
1017
+ def test_instance_method_with_self_works(self):
1018
+ """Calling an instance method with self bound should still work."""
1019
+ self.assertIsNone(Dog().sit())
1020
+
1021
def test_classmethod_missing_cls_does_not_suggest_missing_self(self):
1022
"""A classmethod missing cls conceptually should not suggest self."""
1023
msg = "Dog.register_breed() takes 1 positional argument but 2 were given"
0 commit comments