summaryrefslogtreecommitdiff
path: root/tests/run/builtin_type_inheritance_T608.pyx
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run/builtin_type_inheritance_T608.pyx')
-rw-r--r--tests/run/builtin_type_inheritance_T608.pyx38
1 files changed, 1 insertions, 37 deletions
diff --git a/tests/run/builtin_type_inheritance_T608.pyx b/tests/run/builtin_type_inheritance_T608.pyx
index 1214b6841..d03558a25 100644
--- a/tests/run/builtin_type_inheritance_T608.pyx
+++ b/tests/run/builtin_type_inheritance_T608.pyx
@@ -1,42 +1,6 @@
# ticket: t608
-cdef class MyInt(int):
- """
- >>> MyInt(2) == 2
- True
- >>> MyInt(2).attr is None
- True
- """
- cdef readonly object attr
-
-cdef class MyInt2(int):
- """
- >>> MyInt2(2) == 2
- True
- >>> MyInt2(2).attr is None
- True
- >>> MyInt2(2).test(3)
- 5
- """
- cdef readonly object attr
-
- def test(self, arg):
- return self._test(arg)
-
- cdef _test(self, arg):
- return self + arg
-
-cdef class MyInt3(MyInt2):
- """
- >>> MyInt3(2) == 2
- True
- >>> MyInt3(2).attr is None
- True
- >>> MyInt3(2).test(3)
- 6
- """
- cdef _test(self, arg):
- return self + arg + 1
+# see "builtin_type_inheritance_T608_py2only.pyx" for inheritance from int
cdef class MyFloat(float):
"""