summaryrefslogtreecommitdiff
path: root/Examples/test-suite/python/python_append_runme.py
blob: 54d7a3e00d15a3a4fe88bda2669503d3d33f3cfb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
from python_append import *

# test not relevant for -builtin
if is_python_builtin():
  exit(0)

t=Test()
t.func()
t.static_func()

if grabpath() != os.path.dirname(mypath):
  raise RuntimeError("grabpath failed")

if grabstaticpath() != os.path.basename(mypath):
  raise RuntimeError("grabstaticpath failed")