05.05.2011 22:47, smichr пишет:
> Can someone else test [ https://github.com/sympy/sympy/pull/87 ] and
> see if you get failures? There are two commits there. Failures when
> testing expr.py (and other files) show up for some but not for me
> (W32).
> 
> Ronan thinks it might be related to keep_sign. That could be...but I
> don't see where in the code that I have used (including apart) that
> the value of keep_sign changes.
> 
> Maybe someone else can see the problem.
> 
> Thanks.
> /c
> 

Yes, I observe the errors while running all test in various files :

    $ ./bin/test

And in particular in the test_expr.py file.

But when I run only one

    $ ./bin/test test_expr.py

there is no errors.

Therefore tests depends on the order of testing of files.

I determined that it is related with test_sums_products.py. When I run

    $ ./bin/test test_sums_products.py test_expr.py

the errors begin fails.

And precisely with this lines:
    assert Sum(1/x/(x - 1), (x, a, b)).doit() == -1/b - 1/(1 - a)

When I comment it, then all tests in all files are passed without errors.

It seems that it is related with caching.

If I add at the `test_sums_products.py` after this (#174):
    assert Sum(1/x/(x - 1), (x, a, b)).doit() == -1/b - 1/(1 - a)

this line
    clear_cache()
then all tests in all files are passed without errors.

So this is a solution apparently.


Another question that it seems that `./bin/test` utility doesn't clear
caching before file testings. I think it must to do it. So I create an
issue for it.



-- 
Alexey U.

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sympy?hl=en.

Reply via email to