[pygccxml-commit] SF.net SVN: pygccxml:[1687] pyplusplus_dev
Brought to you by:
mbaas,
roman_yakovenko
From: <rom...@us...> - 2009-02-17 07:16:07
|
Revision: 1687 http://pygccxml.svn.sourceforge.net/pygccxml/?rev=1687&view=rev Author: roman_yakovenko Date: 2009-02-17 07:16:05 +0000 (Tue, 17 Feb 2009) Log Message: ----------- fix bug in module_t.update_documentation method Modified Paths: -------------- pyplusplus_dev/pyplusplus/code_creators/module.py pyplusplus_dev/unittests/unicode_bug.py Modified: pyplusplus_dev/pyplusplus/code_creators/module.py =================================================================== --- pyplusplus_dev/pyplusplus/code_creators/module.py 2009-02-17 06:00:16 UTC (rev 1686) +++ pyplusplus_dev/pyplusplus/code_creators/module.py 2009-02-17 07:16:05 UTC (rev 1687) @@ -81,7 +81,7 @@ if id( cc.declaration ) in visited: continue cc.declaration.documentation = doc_extractor( cc.declaration ) - visited.add( cc.declaration ) + visited.add( id( cc.declaration ) ) class bpmodule_t(module_t): """This class represents the source code for the entire extension module. Modified: pyplusplus_dev/unittests/unicode_bug.py =================================================================== --- pyplusplus_dev/unittests/unicode_bug.py 2009-02-17 06:00:16 UTC (rev 1686) +++ pyplusplus_dev/unittests/unicode_bug.py 2009-02-17 07:16:05 UTC (rev 1687) @@ -13,12 +13,26 @@ from pyplusplus import function_transformers as ft -mb = module_builder.module_builder_t( - [ module_builder.create_text_fc( 'struct x{};' ) ] - , gccxml_path=autoconfig.gccxml.executable - , encoding='UTF-8' - , compiler=autoconfig.cxx_parsers_cfg.gccxml.compiler) +class tester_t( unittest.TestCase ): + def test(self): + mb = module_builder.module_builder_t( + [ module_builder.create_text_fc( 'struct x{};' ) ] + , gccxml_path=autoconfig.gccxml.executable + , encoding='UTF-8' + , compiler=autoconfig.cxx_parsers_cfg.gccxml.compiler) -mb.build_code_creator( module_name='unicode_bug' ) -mb.code_creator.license = "//абвгдеёжзийклмнопрстуфхцчшщъыьэюя" -mb.write_module( os.path.join( autoconfig.build_dir, 'unicode_bug.cpp' ) ) + mb.build_code_creator( module_name='unicode_bug' ) + mb.code_creator.license = "//абвгдеёжзийклмнопрстуфхцчшщъыьэюя" + mb.write_module( os.path.join( autoconfig.build_dir, 'unicode_bug.cpp' ) ) + + +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() This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |