cschwan / sage-on-gentoo

(Unofficial) Gentoo Overlay for Sage- and Sage-related ebuilds
84 stars 26 forks source link

doctest failures in Prefix (9.1.rc4) #589

Closed strogdon closed 3 years ago

strogdon commented 4 years ago

Some failures intersect with those at https://github.com/cschwan/sage-on-gentoo/issues/560.

sage -t --long usr/lib/python3.7/site-packages/sage/rings/polynomial/pbori.pyx  # Bad exit: 1
##  sage -t --long usr/lib/python3.7/site-packages/sage/doctest/test.py  # 12 doctests failed
sage -t --long usr/lib/python3.7/site-packages/sage/matrix/matrix2.pyx  # Bad exit: 1
sage -t --long usr/lib/python3.7/site-packages/sage/rings/function_field/function_field.py  # Timed out
#  sage -t --long usr/lib/python3.7/site-packages/sage/graphs/generic_graph.py  # 2 doctests failed
sage -t --long usr/lib/python3.7/site-packages/sage/manifolds/differentiable/vectorfield.py  # Bad exit: 1
#  sage -t --long usr/lib/python3.7/site-packages/sage/rings/number_field/number_field.py  # 1 doctest failed
##  sage -t --long usr/lib/python3.7/site-packages/sage/rings/integer.pyx  # AlarmInterrupt in doctesting framework
#  sage -t --long usr/lib/python3.7/site-packages/sage/cpython/dict_del_by_value.pyx  # 2 doctests failed
#  sage -t --long usr/lib/python3.7/site-packages/sage/interfaces/tests.py  # 1 doctest failed
sage -t --long usr/lib/python3.7/site-packages/sage/interfaces/singular.py  # Killed due to segmentation fault
#  sage -t --long usr/lib/python3.7/site-packages/sage/repl/ipython_extension.py  # 5 doctests failed
sage -t --long usr/lib/python3.7/site-packages/sage/interfaces/sagespawn.pyx  # 2 doctests failed
#  sage -t --long usr/lib/python3.7/site-packages/sage/interfaces/giac.py  # 1 doctest failed
#   -  failures also on Gentoo with same number of failures ( failures are probably inconsequential )
##  -  failures also on Gentoo but number/type of failures is different.

sage/rings/function_field/function_field.py passed when tested individually. I need to examine the failures with Bad exit or seg fault. The sage/interfaces/sagespawn.pyx failure is rather odd

sage -t --long usr/lib/python3.7/site-packages/sage/interfaces/sagespawn.pyx                                                                                                                         
**********************************************************************                                                                                                                               
File "usr/lib/python3.7/site-packages/sage/interfaces/sagespawn.pyx", line 148,                                                                                                                      in sage.interfaces.sagespawn.SageSpawn.expect_peek                                                                                                                                                   
Failed example:                                                                                                                             
    E.read().decode('ascii')                                                                                                                                                                    
Expected:
    u'hello world\r\n'
Got:
    'orld\r\n'
**********************************************************************
File "usr/lib/python3.7/site-packages/sage/interfaces/sagespawn.pyx", line 166, in sage.interfaces.sagespawn.SageSpawn.expect_upto
Failed example:
    E.read().decode('ascii')
Expected:
    u'world\r\n'
Got:
    'orld\r\n'
**********************************************************************
2 items had failures:
   1 of   5 in sage.interfaces.sagespawn.SageSpawn.expect_peek
   1 of   5 in sage.interfaces.sagespawn.SageSpawn.expect_upto
    [35 tests, 2 failures, 5.29 s]
kiwifb commented 3 years ago

I think everything here is fixed apart possibly from #610 variant failures.