summaryrefslogtreecommitdiff
path: root/tests/errors/builtin_type_inheritance.pyx
blob: a85f7a1339c28c08ec8747b6c42d91177db8c3ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# mode: error

# current restriction: cannot inherit from PyVarObject (see ticket #152)

cdef class MyTuple(tuple):
    pass

cdef class MyBytes(bytes):
    pass

# str is also included in this in Py2, but checked at runtime instead

_ERRORS = """
5:19: inheritance from PyVarObject types like 'tuple' is not currently supported
8:19: inheritance from PyVarObject types like 'bytes' is not currently supported
"""