diff options
Diffstat (limited to 'tests/basics/subclass_native1.py')
-rw-r--r-- | tests/basics/subclass_native1.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/basics/subclass_native1.py b/tests/basics/subclass_native1.py index 288a686d1..74b377eac 100644 --- a/tests/basics/subclass_native1.py +++ b/tests/basics/subclass_native1.py @@ -21,11 +21,9 @@ print(a + [20, 30, 40]) # TODO: Faults #print(a + a) -def foo(): - print("hello from foo") - +# subclassing a type that doesn't have make_new at the C level (not allowed) try: - class myfunc(type(foo)): + class myfunc(type([].append)): pass except TypeError: print("TypeError") |