
Hi Robert,
On Mon, Oct 5, 2009 at 4:30 AM, Robert Cimrman <cimr...@ntc.zcu.cz> wrote:
Hi Logan,
you are absolutely correct, I have found that interaction too - it is already fixed.
Wow, that's fast!
This is the commit af3ef4a27d82856 message:
fix import_file() for multiple imports
- the tests tests/test_input_linear_elastic_dynamic.py (1) and tests/test_input_linear_elastic.py (2) interacted, as (1) imports (2) and modifies some configuration (e.g. ebcs) - the test (2) then wrongly used the modified configuration as the module (2) was not reloaded
Look into sfepy/base/base.py at import_file() to see how to force a module reload.
Ok, this is interesting. I was not aware of the reload function. That looks pretty simple then. I did a git pull and a make and now all tests pass!
This bug was rather tedious to track down on my slow old laptop - I even updated runTests.py to be able to run several selected tests together.
I ended up removing tests one by one from a copy of the tests directory to isolate the problem. This seems much better! :)
Thanks for pointing this out, as the bug did not manifest on my main computer.
No problem, glad to help out where I can. Thanks for the great software and all your effort!
Best, Logan