diff options
Diffstat (limited to 'Examples/test-suite/python/argcargvtest_runme.py')
| -rw-r--r-- | Examples/test-suite/python/argcargvtest_runme.py | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Examples/test-suite/python/argcargvtest_runme.py b/Examples/test-suite/python/argcargvtest_runme.py new file mode 100644 index 0000000..584a19f --- /dev/null +++ b/Examples/test-suite/python/argcargvtest_runme.py @@ -0,0 +1,27 @@ +from argcargvtest import * + +largs=['hi','hola','hello'] +if mainc(largs) != 3: + raise RuntimeError, "bad main typemap" + +targs=('hi','hola') +if mainv(targs,1) != 'hola': + print mainv(targs,1) + raise RuntimeError, "bad main typemap" + +targs=('hi', 'hola') +if mainv(targs,1) != 'hola': + raise RuntimeError, "bad main typemap" + +try: + error = 0 + mainv('hello',1) + error = 1 +except TypeError: + pass +if error: + raise RuntimeError, "bad main typemap" + + + +initializeApp(largs) |
