Re: [pygccxml-development] Possible infinite loop bug; how to run unit tests?
Brought to you by:
mbaas,
roman_yakovenko
From: Roman Y. <rom...@gm...> - 2008-08-25 18:19:49
|
On Mon, Aug 25, 2008 at 5:57 PM, Gustavo Carneiro <gjc...@gm...> wrote: > I just added this simple definition to PyBindGen's unit tests: > > std::map<std::string, int> get_map (); > > Afterwards, pygccxml (0.9.5) just enters what appears to be an inifinite > loop when I call container_traits.element_type(). > > > Traceback (most recent call last): > File "../tests/foomodulegen-auto.py", line 51, in <module> > main() > ... > KeyboardInterrupt Looks like a bug. I tested your example and everything works fine to me, hovewer I tested it for current SVN. http://pygccxml.svn.sourceforge.net/viewvc/pygccxml?view=rev&revision=1405 > > Additionally, I have to ask, how to run unit tests in pygccxml? I found no > instructions, and the obvious does not seem to work: unittests directory contains "autoconfig.py" file. Take a look on it, I don't think you will have problems to setup your system settings there. I also can commit your setting to SVN. We can achieve this by querying for user name and applying them conditionally. -- Roman Yakovenko C++ Python language binding http://www.language-binding.net/ |