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):
3154
3154
3155
3155
class NonPR (PR ): pass
3156
3156
3157
- class C :
3157
+ class C ( metaclass = abc . ABCMeta ) :
3158
3158
x = 1
3159
3159
3160
- class D :
3160
+ class D ( metaclass = abc . ABCMeta ) :
3161
3161
def meth (self ): pass
3162
3162
3163
3163
self .assertNotIsInstance (C (), NonP )
@@ -3174,8 +3174,7 @@ def meth(self): pass
3174
3174
3175
3175
acceptable_extra_attrs = {
3176
3176
'_is_protocol' , '_is_runtime_protocol' , '__parameters__' ,
3177
- '__subclasshook__' , '__abstractmethods__' , '_abc_impl' ,
3178
- '__init__' , '__annotations__' ,
3177
+ '__init__' , '__annotations__' , '__subclasshook__' ,
3179
3178
}
3180
3179
self .assertLessEqual (vars (NonP ).keys (), vars (C ).keys () | acceptable_extra_attrs )
3181
3180
self .assertLessEqual (
You can’t perform that action at this time.
0 commit comments