diff options
Diffstat (limited to 'tests/errors/pep487_exttype.pyx')
-rw-r--r-- | tests/errors/pep487_exttype.pyx | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/errors/pep487_exttype.pyx b/tests/errors/pep487_exttype.pyx new file mode 100644 index 000000000..e9e4f44a2 --- /dev/null +++ b/tests/errors/pep487_exttype.pyx @@ -0,0 +1,13 @@ +# mode: error + +cdef class Imp: + def __init_subclass__(cls, a=None, **kwargs): + super().__init_subclass__(**kwargs) + print(a) + +cdef class ExImp1(Imp): pass +class ExImp2(Imp, a=60): pass + +_ERRORS = u""" +4:4: '__init_subclass__' is not supported by extension class +""" |