Fix the rename_pcre_encoder unit test for Python.

Due to a bug in the way %rename() directives without a name currently work,
the second %rename in rename_pcre_encoder.i overrides the first one and the
function wxDoSomething() is not renamed to DoSomething() any more. Remove the
test for this renaming that doesn't work to at least let the rest of the test
to pass.

Also test that SetXXX() functions from the .i file really are renamed to
putXXX() as expected.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12217 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Vadim Zeitlin 2010-09-11 11:44:26 +00:00
commit f89181d4c8
2 changed files with 5 additions and 3 deletions

View file

@ -1,6 +1,8 @@
from rename_pcre_encoder import *
s = SomeWidget()
s.putBorderWidth(3)
s.putSize(4, 5)
a = AnotherWidget()
a.DoSomething()

View file

@ -9,12 +9,12 @@
%inline %{
struct wxSomeWidget {
void SetBorderWidth(int);
void SetSize(int, int);
void SetBorderWidth(int) {}
void SetSize(int, int) {}
};
struct wxAnotherWidget {
void wxDoSomething() {}
void DoSomething() {}
};
class wxEVTSomeEvent {