Skip to content

Commit 7e46073

Browse files
committed
Fix tests
1 parent fef5542 commit 7e46073

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Lib/test/test_call.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -932,12 +932,12 @@ def test_happy_path(self):
932932
self.assertIs(None, A().method_with_self(1, kwarg=2))
933933

934934
def test_too_many_positional_but_missing_self(self):
935-
msg = "A.missing_self() takes 1 positional argument but 2 were given. Did you forget to declare 'self' as the first parameter?"
935+
msg = "A.missing_self() takes 1 positional argument but 2 were given. Did you forget the 'self' parameter in the function definition?"
936936
with self.check_raises_type_error(msg):
937937
A().missing_self("another_arg")
938938

939939
def test_too_many_positional_but_missing_self_no_args(self):
940-
msg = "A.missing_self_no_args() takes 0 positional arguments but 1 was given. Did you forget to declare 'self' as the first parameter?"
940+
msg = "A.missing_self_no_args() takes 0 positional arguments but 1 was given. Did you forget the 'self' parameter in the function definition?"
941941
with self.check_raises_type_error(msg):
942942
A().missing_self_no_args()
943943

0 commit comments

Comments
 (0)