William S Fulton
4c0c802aa0
Add Python builtin tp_dealloc override test
2016-08-19 18:35:51 +01:00
William S Fulton
f778ee19df
Python builtin hashfunc closure fix
...
If the wrong return type in the hash function was used, an error:
SystemError: error return without exception set
was raised
Add some tests for testing builtin slots
2016-08-18 07:10:54 +01:00
Andrey Starodubtsev
c7adb7901d
Merge branch 'master' into directorargout_and_java_typemaps
2016-08-05 11:20:01 +03:00
William S Fulton
4ab3af90cb
Merge branch 'stl-vector-ptrs'
...
* stl-vector-ptrs:
Test case warning fixes for nodejs
Fix testcase causing nodejs test failure
UTL STL container descriptor checks
Fix std::vector of pointers which failed if a pointer to a pointer of the container element type existed (Python)
Remove unused traits.swg
2016-08-01 06:55:01 +01:00
William S Fulton
56ab717ff3
Test case warning fixes for nodejs
...
nodejs 4.2.1 on Ubuntu Xenial Xerus
2016-07-30 21:23:57 +01:00
William S Fulton
0177937f7e
Fix testcase causing nodejs test failure
2016-07-30 15:00:55 +01:00
Simon Marchetto
95a5def328
scilab: fix issue #755
2016-07-29 11:52:26 +02:00
William S Fulton
6e9184b6f8
Fix std::vector of pointers which failed if a pointer to a pointer of the container element type existed (Python)
...
Closes SF Bug 2359417 created after commit 93f0390322 (svn rev 10958)
2016-07-28 22:51:22 +01:00
William S Fulton
9c3f608ef7
Remove unused traits.swg
...
This file has code that looks like it was migrated to Lib/std/std_common.i
2016-07-27 18:46:23 +01:00
Vladimir Kalinin
3dd943a96b
test case added for "override" from imported module
2016-07-09 16:59:47 +03:00
Lior Goldberg
d0fc5b7b5b
Add C++11 alias templates
2016-07-06 00:31:04 +03:00
myd7349
407b987f4c
Convert the Java runtime testcase cpp11_li_std_array_runme to C#
2016-07-05 10:44:36 +08:00
William S Fulton
b24e970a28
Merge branch 'wkalinin-nested-ignore-fix'
...
* wkalinin-nested-ignore-fix:
renamed test module, in accordance with other tests
function body fixed
added foo() definition to satisfy some test linking fails
func() renamed to foo() for 'go'
fixed test-suite/nested_ignore.i
test for #662
fix for nested ignored types
Closes #662
2016-06-26 00:33:19 +01:00
Lior Goldberg
c363a93d69
Added support for type alias
2016-06-22 23:13:28 +03:00
William S Fulton
86fd5c9858
Fix autodoc testcase for python -fastproxy
...
Also fixes -O.
This is a minimal change avoiding the differences in the function names
when -fastproxy is used until autodoc code is improved with doxygen
changes.
Closes #721 .
2016-06-22 00:15:05 +01:00
William S Fulton
3459099fb8
%shared_ptr and %template testcase modified to work for python -O
...
Testcase has now been modified to mask the problem by providing the default parameter 'int' in:
%shared_ptr(Space::BaseDefault<short, int>)
If this is not done then d fails to convert to BaseDefault<short>&
This needs fixing in SWIG, but the problem is masked for now, so that the python
testcase works when run with the -O option.
2016-06-21 19:49:27 +01:00
William S Fulton
38cda92938
smartptr inheritance fix when using templates and typedefs
...
Fixes SF bug 3333549 - %shared_ptr fixes when the type is a template using
template parameters that are typedef'd to another type.
Also fixes python -O optimization where the smart pointer conversion to the
base class needs to work because of the virtual methods that have been
optimized away.
2016-06-21 07:00:56 +01:00
William S Fulton
cc7319f52f
Replace assert from Python testcases with code that always runs.
...
assert code is sometimes not executed, eg when running python -O.
2016-06-19 20:11:51 +01:00
Andrey Starodubtsev
b2bcf040c0
java directorargout + java/typemaps.i fixes
...
- directorargout didn't work - it used string "jresult" instead of
argument name
- java/typemaps.i didn't work with directors
- test for using java/typemaps.i in directors added
2016-06-08 15:04:47 +03:00
Vladimir Kalinin
4aa86c6647
renamed test module, in accordance with other tests
2016-06-08 14:19:29 +03:00
William S Fulton
98e2132c0b
Merge branch 'mromberg-relative'
...
* mromberg-relative:
Python: Do not import all of sys when using -relativeimport
Add missing print statements to the Python import_packages tests
Update -relative import documentation to reflect runtime check.
> to >=
Make the check for python3 -relative does python runtime check.
2016-06-06 22:23:27 +01:00
William S Fulton
dd40a25349
Add missing print statements to the Python import_packages tests
2016-06-06 22:12:56 +01:00
William S Fulton
2d5c32048c
Only test python:abc feature when passing -py3 to swig
2016-06-06 19:10:25 +01:00
William S Fulton
df30ae0f0b
Examples makefile changes to make it easier to test python3 without -py3
...
Use:
make check-python-test-suite PY3=1 SWIGOPTPY3=
make check-python-examples PY3=1 SWIGOPTPY3=
2016-06-05 22:39:34 +01:00
William S Fulton
53ff928688
Examples readme file tweak
2016-06-05 11:23:58 +01:00
Mike Romberg
2ea01f349d
remove builtin tests as they are already covered.
2016-06-04 14:12:33 -06:00
Mike Romberg
0cc3c78abf
Apply patch to cleanup whitespace from wsfulton
2016-06-04 14:07:50 -06:00
Mike Romberg
906564d97c
and... remove all the .py files that were copied over from the source tree.
2016-06-03 20:20:33 -06:00
Mike Romberg
055ddc6dfc
remove -py3 related tests. Move py3 specific code to it's own module
2016-06-03 18:11:07 -06:00
Mike Romberg
f102d587bc
copy everything with a .py extension into the build tree (creating dirs if needed)
2016-06-03 17:30:01 -06:00
Mike Romberg
f1aea15cf7
debug
2016-06-03 13:26:12 -06:00
Mike Romberg
f3c373a584
avoid the shell checks involving __init__.py
2016-06-03 03:17:19 -06:00
Mike Romberg
621325a7dd
Something optimizes out empty files and breaks the tests. Put something in.
2016-06-03 01:30:43 -06:00
Mike Romberg
ddc9fc1eb9
split_wrapper -> split_modules to avoid conflict with clean rule
2016-06-02 22:45:59 -06:00
Mike Romberg
355e4b4903
Add cases for tests without the -py3 flag even when PY3 is set.
2016-06-02 17:29:05 -06:00
Mike Romberg
3a459b3f27
Tests/Examples for the use case of splitting the wrapper.
...
Half of the wrapper in a package and 1/2 is global.
2016-06-02 14:17:38 -06:00
William S Fulton
260501c45f
Add comment about cpp_template_repeat testcase
2016-06-01 21:25:25 +01:00
William S Fulton
fa60e9c7b0
Removing empty errors tests - template typename missing
...
The missing typename was not warning, but this is too
hard to provide error/warning messages given SWIG supports missing type
information.
2016-06-01 21:25:25 +01:00
William S Fulton
0f0bb3015a
Removing empty error tests - this one seems to be valid C preprocessor code
2016-06-01 21:25:25 +01:00
William S Fulton
e64998d55c
Removing empty errors tests - tests that are valid C/C++ code
2016-06-01 21:25:25 +01:00
William S Fulton
ddd1b38fa2
Removing empty error tests - c_default_error
...
C default arguments are allowed, so migrated the error test to a proper test,
as no error or warning is expected.
2016-06-01 21:25:25 +01:00
William S Fulton
b9ca9f5efc
Smart pointer to %ignored class doesn't expose inherited methods fix.
...
Regression introduced in swig-3.0.9 by 3efdbc8
Closes #690
2016-05-31 22:10:37 +01:00
Vladimir Kalinin
e2d4542350
function body fixed
2016-05-29 01:32:10 +03:00
Vladimir Kalinin
1050f14558
added foo() definition to satisfy some test linking fails
2016-05-28 22:45:06 +03:00
William S Fulton
550da9f7ef
Testcase warning suppression for vc++
2016-05-28 15:52:44 +01:00
Vladimir Kalinin
1f1286ab75
func() renamed to foo() for 'go'
2016-05-28 16:01:09 +03:00
Vladimir Kalinin
4b3694bf15
fixed test-suite/nested_ignore.i
2016-05-28 15:32:31 +03:00
William S Fulton
db54a8d5d1
Fix unused warnings in perl wrappers
2016-05-28 09:59:16 +01:00
William S Fulton
6725b2fdf6
Fix unused variable warnings in test-suite
2016-05-28 00:45:24 +01:00
William S Fulton
43fe8aced6
Testcase workaround for missing boost::array::fill
...
Some older versions of boost don't have this function.
2016-05-26 20:55:28 +01:00