Update of /cvsroot/pygccxml/source/pygccxml/unittests
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1204/pygccxml/unittests
Modified Files:
typedefs_tester.py
Log Message:
moving select interface to pygccxml classes.
Previous code should work unchanged, because I just moved it in hierarchy tree.
Index: typedefs_tester.py
===================================================================
RCS file: /cvsroot/pygccxml/source/pygccxml/unittests/typedefs_tester.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** typedefs_tester.py 20 Apr 2006 04:32:16 -0000 1.1
--- typedefs_tester.py 20 Apr 2006 10:11:26 -0000 1.2
***************
*** 23,31 ****
if not self.declarations:
self.declarations = parser.parse( [self.header], self.config )
!
def test( self ):
! item_cls = declarations.find_declaration( self.declarations
! , type=declarations.class_t
! , name='item_t' )
self.failUnless( item_cls, "unable to find class 'item_t'" )
self.failUnless( len( item_cls.typedefs ) == 1 )
--- 23,33 ----
if not self.declarations:
self.declarations = parser.parse( [self.header], self.config )
! self.global_ns = declarations.find_declaration( self.declarations
! , type=declarations.namespace_t
! , name='::' )
! self.global_ns.init_optimizer()
!
def test( self ):
! item_cls = self.global_ns.class_( name='item_t' )
self.failUnless( item_cls, "unable to find class 'item_t'" )
self.failUnless( len( item_cls.typedefs ) == 1 )
|