Update of /cvsroot/pygccxml/source/pyplusplus/unittests
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11158/pyplusplus/unittests
Modified Files:
test_all.py
Added Files:
factory_tester.py
Log Message:
bug fix: wrong code has been generated for public pure virtual function, when class has wrapper
--- NEW FILE: factory_tester.py ---
# Copyright 2004 Roman Yakovenko.
# Distributed under the Boost Software License, Version 1.0. (See
# accompanying file LICENSE_1_0.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt)
import os
import sys
import unittest
import fundamental_tester_base
class tester_t(fundamental_tester_base.fundamental_tester_base_t):
EXTENSION_NAME = 'factory'
def __init__( self, *args ):
fundamental_tester_base.fundamental_tester_base_t.__init__(
self
, tester_t.EXTENSION_NAME
, *args )
def run_tests(self, module):
conrete_inst = module.create()
self.failUnless( 1 == conrete_inst.run() )
def create_suite():
suite = unittest.TestSuite()
suite.addTest( unittest.makeSuite(tester_t))
return suite
def run_suite():
unittest.TextTestRunner(verbosity=2).run( create_suite() )
if __name__ == "__main__":
run_suite()
Index: test_all.py
===================================================================
RCS file: /cvsroot/pygccxml/source/pyplusplus/unittests/test_all.py,v
retrieving revision 1.36
retrieving revision 1.37
diff -C2 -d -r1.36 -r1.37
*** test_all.py 26 Mar 2006 07:20:56 -0000 1.36
--- test_all.py 20 Apr 2006 05:35:40 -0000 1.37
***************
*** 48,51 ****
--- 48,52 ----
import optional_bug_tester
import pointer_as_arg_tester
+ import factory_tester
def create_suite(times):
***************
*** 92,95 ****
--- 93,97 ----
, optional_bug_tester
, pointer_as_arg_tester
+ , factory_tester
]
|