Hi,

I think I identified the source of the problem. Basically, there is an unwanted interaction between tests/test_input_linear_elastic.py and tests/test_input_linear_elastic_dynamic.py. Since the test_input_linear_elastic_dynamic case is run first (at least on my machine) and input/linear_elastic_dynamic.py imports from input/linear_elastic.py, it looks like python is compiling linear_elastic.py -> linear_elastic.pyc for the linear_elastic_dynamic case, and then reusing that module when it imports again for the linear_elastic case. It picks up the ebcs as {'PerturbedSurface': ('Right', {'u.0': 'ebc_sin', 'u.1': 0.0, 'u.2': 0.0}), 'Fixed': ('Left', {'u.all': 0.0})} instead of the correct boundary conditions from linear_elastic.py, so it fails when it tries to find the ebc_sin function which no longer exists. Hope that is clear. :)

What would be the pythonic way to fix this? Is there a way to force python to recompile the input files when running tests?

Thanks!
Logan

On Fri, Oct 2, 2009 at 4:55 AM, Robert Cimrman <cimr...@ntc.zcu.cz> wrote:

Logan Sorenson wrote:
> Hi again,
>
> I just ran ./runTests.py with the latest git and I noticed one test was
> failing (tests/test_input_linear_elastic.py). However, when I ran
> ./runTests.py --debug tests/test_input_linear_elastic.py, the test is
> passing. It also passes with just ./runTests.py
> tests/test_input_linear_elastic.py. Here's the output:

This is strange. Try running all the tests with --debug, i.e.

./runTests.py --debug

Maybe there is some unwanted interaction in play. I do not get any
failures, though.

r.