testing test_sage.py

36 views
Skip to first unread message

Ralf Stephan

unread,
Dec 8, 2014, 3:52:46 AM12/8/14
to sy...@googlegroups.com
Hello,
the most recent Sage has sympy-0.7.5. When testing the sympy file test_sage.py using
./sage -t local/lib/python2.7/site-packages/sympy/external/tests/test_sage.py
I get six fails, the same with Sage-6.2+sympy-0.7.4. Now I'm asking myself, how does the sympy test robot test the git master version? Wouldn't git master first have to be adapted to Sage? How do you do that automagically?

If the test_sage.py file is not tested I would be happy to open a ticket /wrt to the failing code.

Regards,

Ondřej Čertík

unread,
Dec 8, 2014, 5:17:52 PM12/8/14
to sympy
Hi Ralf,

Thanks for looking into it. We test against Sage regularly on Travis.
Here is the part that installs Sage:

https://github.com/sympy/sympy/blob/4a732fd3234043baef640ab65ec9900bca802780/.travis.yml#L114

and here is the actual test:

https://github.com/sympy/sympy/blob/4a732fd3234043baef640ab65ec9900bca802780/bin/test_travis.sh#L16

But it should be noted, that the Sage tests are in the "can fail" category:

https://github.com/sympy/sympy/blob/4a732fd3234043baef640ab65ec9900bca802780/.travis.yml#L77

But if you look at the Travis tests:

https://travis-ci.org/sympy/sympy/builds

e.g.:

https://travis-ci.org/sympy/sympy/builds/43339863

I can't find the Sage tests. Any ideas what's going on?

Ondrej
> --
> You received this message because you are subscribed to the Google Groups
> "sympy" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sympy+un...@googlegroups.com.
> To post to this group, send email to sy...@googlegroups.com.
> Visit this group at http://groups.google.com/group/sympy.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sympy/b0b271d0-d86d-4bff-a536-2cb2cd16f242%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Ralf Stephan

unread,
Dec 9, 2014, 9:48:05 AM12/9/14
to sy...@googlegroups.com
On Monday, December 8, 2014 11:17:52 PM UTC+1, Ondřej Čertík wrote:
I can't find the Sage tests. Any ideas what's going on?

Yes. This command

sage -python bin/test sympy/external/tests/test_sage.py 

will fail right at the start because SymPy's bundling of mpmath interfers
with Sage's bundling of mpmath. That's why, in Sage's recent upgrade
to sympy-0.7.5, we applied Sergey's patch that removes SymPy's mpmath.
So, only the testing of the SymPy version included with Sage works (via
sage -t), but not that of git master.

On unbundling of mpmath from SymPy please see


Ondřej Čertík

unread,
Dec 9, 2014, 9:54:00 AM12/9/14
to sympy
On Tue, Dec 9, 2014 at 7:48 AM, Ralf Stephan <gtr...@gmail.com> wrote:
> On Monday, December 8, 2014 11:17:52 PM UTC+1, Ondřej Čertík wrote:
>>
>> I can't find the Sage tests. Any ideas what's going on?
>
>
> Yes. This command
>
> sage -python bin/test sympy/external/tests/test_sage.py
>
> will fail right at the start because SymPy's bundling of mpmath interfers
> with Sage's bundling of mpmath. That's why, in Sage's recent upgrade
> to sympy-0.7.5, we applied Sergey's patch that removes SymPy's mpmath.
> So, only the testing of the SymPy version included with Sage works (via
> sage -t), but not that of git master.

Sure, but we should be able to see this failure at Travis, and I don't
see anything. That's why I am asking.

>
> On unbundling of mpmath from SymPy please see
> https://github.com/sympy/sympy/pull/2192

Yes, this will be applied soon.

Ondrej
Reply all
Reply to author
Forward
0 new messages