@@ -858,7 +858,8 @@ def m1(self): pass
858858
859859 attrs = attrs_wo_objs (A )
860860
861- self .assertIn (('__new__' , 'method' , object ), attrs , 'missing __new__' )
861+ self .assertIn (('__new__' , 'static method' , object ), attrs ,
862+ 'missing __new__' )
862863 self .assertIn (('__init__' , 'method' , object ), attrs , 'missing __init__' )
863864
864865 self .assertIn (('s' , 'static method' , A ), attrs , 'missing static method' )
@@ -923,6 +924,18 @@ def test_classify_builtin_types(self):
923924 if isinstance (builtin , type ):
924925 inspect .classify_class_attrs (builtin )
925926
927+ attrs = attrs_wo_objs (bool )
928+ self .assertIn (('__new__' , 'static method' , bool ), attrs ,
929+ 'missing __new__' )
930+ self .assertIn (('from_bytes' , 'class method' , int ), attrs ,
931+ 'missing class method' )
932+ self .assertIn (('to_bytes' , 'method' , int ), attrs ,
933+ 'missing plain method' )
934+ self .assertIn (('__add__' , 'method' , int ), attrs ,
935+ 'missing plain method' )
936+ self .assertIn (('__and__' , 'method' , bool ), attrs ,
937+ 'missing plain method' )
938+
926939 def test_classify_DynamicClassAttribute (self ):
927940 class Meta (type ):
928941 def __getattr__ (self , name ):
0 commit comments