File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -3154,10 +3154,10 @@ class NonP(P):
31543154
31553155 class NonPR (PR ): pass
31563156
3157- class C :
3157+ class C ( metaclass = abc . ABCMeta ) :
31583158 x = 1
31593159
3160- class D :
3160+ class D ( metaclass = abc . ABCMeta ) :
31613161 def meth (self ): pass
31623162
31633163 self .assertNotIsInstance (C (), NonP )
@@ -3174,8 +3174,7 @@ def meth(self): pass
31743174
31753175 acceptable_extra_attrs = {
31763176 '_is_protocol' , '_is_runtime_protocol' , '__parameters__' ,
3177- '__subclasshook__' , '__abstractmethods__' , '_abc_impl' ,
3178- '__init__' , '__annotations__' ,
3177+ '__init__' , '__annotations__' , '__subclasshook__' ,
31793178 }
31803179 self .assertLessEqual (vars (NonP ).keys (), vars (C ).keys () | acceptable_extra_attrs )
31813180 self .assertLessEqual (
You can’t perform that action at this time.
0 commit comments