summaryrefslogtreecommitdiff
path: root/Examples/test-suite/python/inctest_runme.py
blob: c2746560de7b89105b002713c7f4c6289b3b1a79 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import inctest

try:
    a = inctest.A()
except:
    raise RuntimeError("didn't find A, therefore, I didn't include 'testdir/subdir1/hello.i'")
pass


try:
    b = inctest.B()
except:
    raise RuntimeError("didn't find B, therefore, I didn't include 'testdir/subdir2/hello.i'")
pass

# Check the import in subdirectory worked
if inctest.importtest1(5) != 15:
    raise RuntimeError("import test 1 failed")

if inctest.importtest2("black") != "white":
    raise RuntimeError("import test 2 failed")