I think there is a ticket to fix this, it's a Python 3.10 syntax that was used at that place.
On Wed, Jun 1, 2022 at 5:53 AM Clemens Heuberger <[email protected]> wrote: > > With a Python 3.8.10 installed as a system python, I get a persistent doctest > failure (Linux Mint 20.2 uma): > > Running doctests with ID 2022-05-29-17-41-28-c07c4f34. > Using --optional=ccache,debian,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,gfan,graphviz,imagemagick,jupymake,kenzo,latte_int,lrslib,mcqd,meataxe,msolve,nauty,palp,pandoc,pdf2svg,pdftocairo,phitigra,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 164.1 > --random-seed=286393217015090953698065039142096748400 > src/sage/doctest/forker.py > ********************************************************************** > File "src/sage/doctest/forker.py", line 1708, in > sage.doctest.forker.DocTestDispatcher.parallel_dispatch > Failed example: > with ( NTF(suffix=".py", mode="w+t") as f1, > NTF(suffix=".py", mode="w+t") as f2 ): > _ = f1.write("'''\nsage: import time; time.sleep(60)\n'''") > f1.flush() > _ = f2.write("'''\nsage: True\nFalse\n'''") > f2.flush() > DC = DocTestController(DocTestDefaults(exitfirst=True, > nthreads=2), > [f1.name, f2.name]) > DC.expand_files_into_sources() > DD = DocTestDispatcher(DC) > DR = DocTestReporter(DC) > DC.reporter = DR > DC.dispatcher = DD > DC.timer = Timer().start() > DD.parallel_dispatch() > Exception raised: > Traceback (most recent call last): > File > "/local/cheuberg/local/sage-9.7.beta1/local/var/lib/sage/venv-python3.8/lib/python3.8/site-packages/sage/doctest/forker.py", > line 695, in _run > self.compile_and_execute(example, compiler, test.globs) > File > "/local/cheuberg/local/sage-9.7.beta1/local/var/lib/sage/venv-python3.8/lib/python3.8/site-packages/sage/doctest/forker.py", > line 1091, in compile_and_execute > compiled = compiler(example) > File > "/local/cheuberg/local/sage-9.7.beta1/local/var/lib/sage/venv-python3.8/lib/python3.8/site-packages/sage/doctest/forker.py", > line 662, in compiler > code = compile(example.source, filename, "single", > File "<doctest > sage.doctest.forker.DocTestDispatcher.parallel_dispatch[17]>", line 1 > with ( NTF(suffix=".py", mode="w+t") as f1, > ^ > SyntaxError: invalid syntax > ********************************************************************** > 1 item had failures: > 1 of 19 in sage.doctest.forker.DocTestDispatcher.parallel_dispatch > [441 tests, 1 failure, 7.40 s] > ---------------------------------------------------------------------- > sage -t --long --warn-long 164.1 > --random-seed=286393217015090953698065039142096748400 > src/sage/doctest/forker.py > # 1 doctest failed > ---------------------------------------------------------------------- > Total time for all tests: 12.3 seconds > cpu time: 1.5 seconds > cumulative wall time: 7.4 seconds > Features detected for doctesting: > pytest is not installed in the venv, skip checking tests that rely on it > > > Am 27.05.22 um 21:32 schrieb Volker Braun: > > As always, you can get the latest beta version from the "develop" git > > branch. > > Alternatively, the self-contained source tarball is at > > http://www.sagemath.org/download-latest.html > > > > -- > You received this message because you are subscribed to the Google Groups > "sage-release" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/sage-release/d0afab93-1cf6-2379-dd47-43f33e75b6b8%40aau.at. -- You received this message because you are subscribed to the Google Groups "sage-release" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-release/CAAWYfq2%3DJnCyUL%3D7SkV_x9rPZxWF94M%3DsBaU7seUGNRm0MLFJw%40mail.gmail.com.
