[z3-five] pythonproducts monkey patches

yuppie y.2006_ at wcm-solutions.de
Wed Jul 19 14:57:59 CEST 2006


Hi!


I'm not sure which collector to use for Five issues so I decided to 
report this to the list:

The monkey patching code used in Five 1.4 is not very robust. If 
setupPythonProducts is called twice _originalGetPath is set twice - the 
second time with the patched getPath. This leads to an infinite 
recursion because the patched getPath calls _originalGetPath.

The unit tests actually depend on the fact that test_externalmethods is 
usually run before test_registerPackage. If you change their order 
(AFAICS they are run in alphabetical order) you can see the problem.

I stumbled over this issue because I did run the Five tests together 
with tests that initialize Five.


Cheers,

	Yuppie




More information about the z3-five mailing list