Jeroen Demeyer wrote:
The new doctesting framework (#12415) on Solaris gives lots of warnings like

sage -t --long devel/sage/sage/plot/plot.py
**********************************************************************
File "devel/sage/sage/plot/plot.py", line 236, in sage.plot.plot
Failed example:
     (g1+g2).show(ticks=pi/6, tick_formatter=pi)  # show their sum,
nicely formatted
Expected nothing
Got:
     Warning: invalid value encountered in isinf
     Warning: invalid value encountered in isinf
     Warning: invalid value encountered in isinf
     [...]
     Warning: invalid value encountered in isinf
     Warning: invalid value encountered in isinf
     Warning: invalid value encountered in isinf

These warnings are actually harmless and are indirectly caused by the
fact that Python doesn't find the isinf() C library function. From
spkg/logs/python-2.7.3.p5.log:

[...]
checking whether isinf is declared... no
checking whether isnan is declared... yes
checking whether isfinite is declared... no
[...]

These functions are defined by C99 and Python's configure does find
isinf and isfinite when compiled with -D__C99FEATURES__. So we should
add a compiler flag to fix this. Needs review:
http://trac.sagemath.org/sage_trac/ticket/14265

... while now also requiring _ctypes to properly import breaks the build of the Python spkg on at least Solaris SPARC with GCC 4.7.x (which apparently is a Python bug, but previously didn't hurt).

Slightly related: IPython not being able to import _ctypes meanwhile breaks a lot of doctests because of (IMHO superfluous) warnings regarding "%gui" not being available. (This is #14309.)

Requiring _ctypes is unrelated to the purpose of the ticket, AFAIK.


-leif

--
() The ASCII Ribbon Campaign
/\   Help Cure HTML E-Mail

--
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to