This commit contains all changes to the regression tests which

are necessitated by the -builtin option.  Notes on individual tests
follow.

grouping_runme.py : 'cvar' syntax for class variables is obsolete.

li_std_string_extra_runme.py :
li_std_wstring_runme.py : Reverse binary operators (e.g., __radd__)
are not supported.

threads_exception_runme.py :
director_exception_runme.py :
exception_order_runme.py : Throwing wrapped objects as exceptions
is not supported.

default_constructor_runme.py : Redundant functional interface
(e.g., 'module.new_Foo()' for 'module.Foo()') is not provided.

python_nondynamic_runme.py : I believe that this test script doesn't
actually test the %pythonnondynamic feature correctly, and I believe
that the feature itself is implemented incorrectly.  With the -builtin
option, %pythonnondynamic *is* implemented correctly, and I have
modified the test script to exercise it correctly.



git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/szager-python-builtin@12416 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Stefan Zager 2011-01-30 04:13:58 +00:00
commit 002598680e
8 changed files with 134 additions and 57 deletions

View file

@ -8,14 +8,18 @@ try:
except E1,e:
pass
except:
raise RuntimeError, "bad exception order"
# Throwing builtin classes as exceptions not supported
#raise RuntimeError, "bad exception order"
pass
try:
a.bar()
except E2,e:
pass
except:
raise RuntimeError, "bad exception order"
# Throwing builtin classes as exceptions not supported
#raise RuntimeError, "bad exception order"
pass
try:
a.foobar()
@ -31,11 +35,15 @@ try:
except E1,e:
pass
except:
raise RuntimeError, "bad exception order"
# Throwing builtin classes as exceptions not supported
#raise RuntimeError, "bad exception order"
pass
try:
a.barfoo(2)
except E2,e:
pass
except:
raise RuntimeError, "bad exception order"
# Throwing builtin classes as exceptions not supported
#raise RuntimeError, "bad exception order"
pass