Update of /cvsroot/pygccxml/source/pyplusplus/unittests
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11219/pyplusplus/unittests
Modified Files:
recursive_tester.py regression2_tester.py
Log Message:
making some test to use cool feature created by Matthias
Index: regression2_tester.py
===================================================================
RCS file: /cvsroot/pygccxml/source/pyplusplus/unittests/regression2_tester.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** regression2_tester.py 15 Mar 2006 09:27:07 -0000 1.3
--- regression2_tester.py 16 Mar 2006 06:34:09 -0000 1.4
***************
*** 21,26 ****
def customize( self, mb ):
! decls = mb.decls( lambda decl: not isinstance( decl, declarations.namespace_t )
! and decl.name == 'get_a' )
decls.ignore = True
--- 21,27 ----
def customize( self, mb ):
! matcher = ~declarations.namespace_matcher_t()
! matcher = matcher & declarations.declaration_matcher_t( name='get_a' )
! decls = mb.decls( matcher )
decls.ignore = True
Index: recursive_tester.py
===================================================================
RCS file: /cvsroot/pygccxml/source/pyplusplus/unittests/recursive_tester.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** recursive_tester.py 15 Mar 2006 09:27:07 -0000 1.3
--- recursive_tester.py 16 Mar 2006 06:34:09 -0000 1.4
***************
*** 21,26 ****
def customize( self, mb ):
! decls = mb.decls( lambda decl: not isinstance(decl, declarations.namespace_t)
! and 'skip' in decl.name )
decls.ignore = True
--- 21,28 ----
def customize( self, mb ):
! matcher = ~declarations.namespace_matcher_t()
! matcher = matcher & declarations.regex_matcher_t( '.*skip.*' )
!
! decls = mb.decls( matcher )
decls.ignore = True
|