On the same machine, but after installing pytest
(with sage -i pytest
), I get two permanent failures :
sage -t --long --warn-long 65.8 --random-seed=270444136495851075301247037545414794286 src/sage/tests/cmdline.py # 1 doctest failed
sage -t --long --warn-long 65.8 --random-seed=270444136495851075301247037545414794286 src/sage/libs/giac/__init__.py # Timed out
Reproducing the first one :
charpent@p-202-021:/usr/local/sage-9$ sage -t --long --warn-long 65.8 --random-seed=270444136495851075301247037545414794286 src/sage/tests/cmdline.py # 1 doctest failed
Running doctests with ID 2022-03-28-15-03-04-43712df6.
Git branch: develop
Using --optional=debian,dot2tex,fricas,gap_packages,libsemigroups,pip,sage,sage_spkg
Features to be detected: 4ti2,benzene,bliss,buckygen,conway_polynomials,csdp,database_cremona_ellcurve,database_cremona_mini_ellcurve,database_jones_numfield,database_knotinfo,dvipng,graphviz,imagemagick,jupymake,kenzo,latte_int,lrslib,mcqd,meataxe,nauty,palp,pandoc,pdf2svg,pdftocairo,plantri,polytopes_db,polytopes_db_4d,pynormaliz,python_igraph,rubiks,sage.combinat,sage.geometry.polyhedron,sage.graphs,sage.groups,sage.plot,sage.rings.number_field,sage.rings.padics,sage.rings.real_double,sage.symbolic,sage_numerical_backends_coin,sagemath_doc_html,sphinx,tdlib
Doctesting 1 file.
sage -t --long --warn-long 65.8 --random-seed=270444136495851075301247037545414794286 src/sage/tests/cmdline.py
**********************************************************************
File "src/sage/tests/cmdline.py", line 312, in sage.tests.cmdline.test_executable
Failed example:
ret
Expected:
0
Got:
4
**********************************************************************
1 item had failures:
1 of 218 in sage.tests.cmdline.test_executable
[217 tests, 1 failure, 45.65 s]
----------------------------------------------------------------------
sage -t --long --warn-long 65.8 --random-seed=270444136495851075301247037545414794286 src/sage/tests/cmdline.py # 1 doctest failed
----------------------------------------------------------------------
Total time for all tests: 45.7 seconds
cpu time: 0.3 seconds
cumulative wall time: 45.6 seconds
Features detected for doctesting: pandoc
============================= test session starts ==============================
platform linux -- Python 3.9.12, pytest-7.1.1, pluggy-1.0.0
rootdir: /usr/local/sage-9/src, configfile: tox.ini
collected 1 item
src/sage/tests/cmdline.py E [100%]
==================================== ERRORS ====================================
______________________ ERROR at setup of test_executable _______________________
file /usr/local/sage-9/src/sage/tests/cmdline.py, line 61
def test_executable(args, input="", timeout=100.0, pydebug_ignore_warnings=False, **kwds):
E fixture 'args' not found
> available fixtures: add_imports, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
/usr/local/sage-9/src/sage/tests/cmdline.py:61
=========================== short test summary info ============================
ERROR src/sage/tests/cmdline.py::test_executable
=============================== 1 error in 0.01s ===============================
I can’t reproduce the second, which “never” returns>. Interrupting it after ~20 minutes, I get :
^CKilling test src/sage/libs/giac/__init__.py
----------------------------------------------------------------------
Doctests interrupted: 0/1 files tested
----------------------------------------------------------------------
Total time for all tests: 1164.9 seconds
cpu time: 0.0 seconds
cumulative wall time: 0.0 seconds
Features detected for doctesting:
^CTraceback (most recent call last):
File "/usr/local/sage-9/src/bin/sage-runtests", line 153, in <module>
import pytest
File "/usr/local/sage-9/local/var/lib/sage/venv-python3.9/lib/python3.9/site-packages/pytest/__init__.py", line 7, in <module>
from _pytest.cacheprovider import Cache
File "/usr/local/sage-9/local/var/lib/sage/venv-python3.9/lib/python3.9/site-packages/_pytest/cacheprovider.py", line 31, in <module>
from _pytest.python import Module
File "/usr/local/sage-9/local/var/lib/sage/venv-python3.9/lib/python3.9/site-packages/_pytest/python.py", line 1156, in <module>
class Metafunc:
File "/usr/local/sage-9/local/var/lib/sage/venv-python3.9/lib/python3.9/site-packages/_pytest/python.py", line 1204, in Metafunc
ids: Optional[
File "/usr/lib/python3.9/typing.py", line 274, in inner
return cached(*args, **kwds)
File "/usr/lib/python3.9/typing.py", line 354, in __getitem__
return self._getitem(self, parameters)
File "/usr/lib/python3.9/typing.py", line 479, in Optional
return Union[arg, type(None)]
File "/usr/lib/python3.9/typing.py", line 274, in inner
return cached(*args, **kwds)
File "/usr/lib/python3.9/typing.py", line 354, in __getitem__
return self._getitem(self, parameters)
File "/usr/lib/python3.9/typing.py", line 470, in Union
return _UnionGenericAlias(self, parameters)
File "/usr/lib/python3.9/typing.py", line 746, in __init__
self.__parameters__ = _collect_type_vars(params)
File "src/cysignals/signals.pyx", line 310, in cysignals.signals.python_check_interrupt
KeyboardInterrupt
HTH,
Might be. But why the failure on one machine and not the other ??? On the machine where the tests completes :
charpent@zen-book-flip:~$ sage -pip list | grep pytest
pytest 7.1.1