summaryrefslogtreecommitdiffstatshomepage
path: root/tests/basics/builtin_exec_buffer.py
blob: a875cfb1fa85bd21734c377266ce55a1817cbd55 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
# test builtin exec with a buffer (bytearray/memoryview) input

try:
    exec
    bytearray
    memoryview
except:
    print("SKIP")
    raise SystemExit

exec(bytearray(b'print(1)'))
exec(memoryview(b'print(2)'))