@@ -933,7 +933,7 @@ def sit(self):
933933 def register_breed (dog_type ):
934934 pass
935935
936- class DogMeta (type ):
936+ class AnimalMeta (type ):
937937 def register_pack (dog_type ):
938938 pass
939939
@@ -948,7 +948,7 @@ def classify_pack(dog_type):
948948 def tag_pack (label ):
949949 pass
950950
951- class Poodle (metaclass = DogMeta ):
951+ class Poodle (metaclass = AnimalMeta ):
952952 pass
953953
954954@cpython_only
@@ -1040,25 +1040,25 @@ def test_staticmethod_too_many_args_via_instance_does_not_suggest_missing_self(s
10401040
10411041 def test_metaclass_missing_receiver_does_not_suggest_missing_self (self ):
10421042 """A metaclass receiver error should not suggest an instance self."""
1043- msg = "DogMeta .register_pack() takes 1 positional argument but 2 were given"
1043+ msg = "AnimalMeta .register_pack() takes 1 positional argument but 2 were given"
10441044 with self .check_raises_type_error (msg ):
10451045 Poodle .register_pack ("standard" )
10461046
10471047 def test_metaclass_method_too_many_args_does_not_suggest_missing_self (self ):
10481048 """A metaclass method with too many arguments should not suggest self."""
1049- msg = "DogMeta .track_pack() takes 2 positional arguments but 3 were given"
1049+ msg = "AnimalMeta .track_pack() takes 2 positional arguments but 3 were given"
10501050 with self .check_raises_type_error (msg ):
10511051 Poodle .track_pack ("trail" , "river" )
10521052
10531053 def test_metaclass_classmethod_does_not_suggest_missing_self (self ):
10541054 """A classmethod on a metaclass should not suggest instance self."""
1055- msg = "DogMeta .classify_pack() takes 1 positional argument but 2 were given"
1055+ msg = "AnimalMeta .classify_pack() takes 1 positional argument but 2 were given"
10561056 with self .check_raises_type_error (msg ):
10571057 Poodle .classify_pack ("standard" )
10581058
10591059 def test_metaclass_staticmethod_does_not_suggest_missing_self (self ):
10601060 """A staticmethod on a metaclass should not suggest instance self."""
1061- msg = "DogMeta .tag_pack() takes 1 positional argument but 2 were given"
1061+ msg = "AnimalMeta .tag_pack() takes 1 positional argument but 2 were given"
10621062 with self .check_raises_type_error (msg ):
10631063 Poodle .tag_pack ("show" , "working" )
10641064
0 commit comments