summaryrefslogtreecommitdiff
path: root/tests/basics/types3.py
blob: 71f7906923b17c3284fcb1a2e09309575ff1b3fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
try:
    type('abc', None, None)
except TypeError:
    print(True)
else:
    print(False)

try:
    type('abc', (), None)
except TypeError:
    print(True)
else:
    print(False)

try:
    type('abc', (1,), {})
except TypeError:
    print(True)
else:
    print(False)