File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments