Does this change fix the fricas.py failure?

diff --git a/src/sage/interfaces/fricas.py b/src/sage/interfaces/fricas.py
index dc2ce71f26..ceba6f90dc 100644
--- a/src/sage/interfaces/fricas.py
+++ b/src/sage/interfaces/fricas.py
@@ -891,7 +891,7 @@ http://fricas.sourceforge.net.
         """
         EXAMPLES::
 
-            sage: fricas.__reduce__()                                     
      # optional - fricas
+            sage: FriCAS().__reduce__()                                   
      # optional - fricas
             (<function reduce_load_fricas at 0x...>, ())
             sage: f, args = _                                             
      # optional - fricas
             sage: f(*args) 



On Friday, January 20, 2023 at 12:34:21 PM UTC-8 [email protected] 
wrote:

> Apart from the  Emacs issye alteady reported 
> <https://groups.google.com/g/sage-release/c/QRjzctTlVeU/m/MKACzqcVAQAJ>, 
> I get the three permanent failures I reported for the previous betas, as 
> well as a new one, which gives three errors :
>
> charpent@zen-book-flip:/usr/local/sage-9$ sage -t --long --warn-long 259.6 
> --random-seed=41414648133166628206443904124754495105 
> src/sage/interfaces/fricas.py  # 3 doctests failed
> Running doctests with ID 2023-01-20-20-50-00-ee865d6d.
> Git branch: develop
> Git ref: 9.8.beta7
> Running with SAGE_LOCAL='/usr/local/sage-9/local' and 
> SAGE_VENV='/usr/local/sage-9/local/var/lib/sage/venv-python3.10'
> Using 
> --optional=debian,dot2tex,fricas,gap_packages,libsemigroups,mathics,mathics_scanner,msolve,palettable,pint,pip,saclib,sage,sage_spkg
> Features to be detected: 
> 4ti2,benzene,bliss,buckygen,conway_polynomials,csdp,cvxopt,database_cremona_ellcurve,database_cremona_mini_ellcurve,database_cubic_hecke,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.misc.cython,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 259.6 
> --random-seed=41414648133166628206443904124754495105 
> src/sage/interfaces/fricas.py
> **********************************************************************
> File "src/sage/interfaces/fricas.py", line 894, in 
> sage.interfaces.fricas.FriCAS.__reduce__
> Failed example:
>     fricas.__reduce__()                                           # 
> optional - fricas
> Exception raised:
>
>     Traceback (most recent call last):
>       File "/usr/local/sage-9/src/sage/doctest/forker.py", line 695, in 
> _run
>         self.compile_and_execute(example, compiler, test.globs)
>       File "/usr/local/sage-9/src/sage/doctest/forker.py", line 1093, in 
> compile_and_execute
>         exec(compiled, globs)
>       File "<doctest sage.interfaces.fricas.FriCAS.__reduce__[0]>", line 
> 1, in <module>
>         fricas.__reduce__()                                           # 
> optional - fricas
>       File "/usr/lib/python3.10/copyreg.py", line 76, in _reduce_ex
>         raise TypeError(f"cannot pickle {cls.__name__!r} object")
>     TypeError: cannot pickle 'LazyImport' object
> **********************************************************************
> File "src/sage/interfaces/fricas.py", line 896, in 
> sage.interfaces.fricas.FriCAS.__reduce__
> Failed example:
>     f, args = _                                                   # 
> optional - fricas
> Exception raised:
>
>     Traceback (most recent call last):
>       File "/usr/local/sage-9/src/sage/doctest/forker.py", line 695, in 
> _run
>         self.compile_and_execute(example, compiler, test.globs)
>       File "/usr/local/sage-9/src/sage/doctest/forker.py", line 1093, in 
> compile_and_execute
>         exec(compiled, globs)
>       File "<doctest sage.interfaces.fricas.FriCAS.__reduce__[1]>", line 
> 1, in <module>
>         f, args = _                                                   # 
> optional - fricas
>     TypeError: cannot unpack non-iterable int object
> **********************************************************************
> File "src/sage/interfaces/fricas.py", line 897, in 
> sage.interfaces.fricas.FriCAS.__reduce__
> Failed example:
>     f(*args)                                                      # 
> optional - fricas
> Exception raised:
>
>     Traceback (most recent call last):
>       File "/usr/local/sage-9/src/sage/doctest/forker.py", line 695, in 
> _run
>         self.compile_and_execute(example, compiler, test.globs)
>       File "/usr/local/sage-9/src/sage/doctest/forker.py", line 1093, in 
> compile_and_execute
>         exec(compiled, globs)
>       File "<doctest sage.interfaces.fricas.FriCAS.__reduce__[2]>", line 
> 1, in <module>
>         f(*args)                                                      # 
> optional - fricas
>     NameError: name 'f' is not defined
> **********************************************************************
> 1 item had failures:
>    3 of   4 in sage.interfaces.fricas.FriCAS.__reduce__
>     [277 tests, 3 failures, 42.89 s]
> ----------------------------------------------------------------------
> sage -t --long --warn-long 259.6 
> --random-seed=41414648133166628206443904124754495105 
> src/sage/interfaces/fricas.py  # 3 doctests failed
> ----------------------------------------------------------------------
> Total time for all tests: 48.0 seconds
>     cpu time: 4.2 seconds
>     cumulative wall time: 42.9 seconds
> Features detected for doctesting: 
>
> HTH,
> Le jeudi 19 janvier 2023 à 00:48:25 UTC+1, Volker Braun a écrit :
>
>> 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
>>
>> We should probably gear up for a 9.8 release soon, so get your tickets 
>> ready ;)
>>
>> 047281e0287 (trac/develop, tag: 9.8.beta7) Updated SageMath version to 
>> 9.8.beta7
>> 272c557d1f3 Trac #31668: Run TestSuite on polynomial rings
>> 6f8fb9ba3ef Trac #22067: generating function of integral points of 
>> polyhedra
>> 5544a33b815 Trac #21003: Add package pyscipopt, add MIP backend
>> b0422b2536b Trac #34838: setuptools_scm, contourpy, 
>> sphinxcontrib_websupport, typing_extensions: Add missing dependencies
>> 30d58156a46 Trac #34717: Check the presence of lrsnash for obtain_nash()
>> c7299453922 Trac #34891: fixing some E502 in tensor, dynamics, modules, 
>> plot, numerical
>> bc832cb3578 Trac #34889: Installation guide: On WSL, clear /mnt/c stuff 
>> from PATH
>> 3570a9a63bd Trac #34881: allow to remove no constraints
>> 0ceb1032430 Trac #34878: MixedIntegerLinearProgram.add_constraint: Option 
>> to return row indices, fix handling of empty constraints
>> df74efb66d2 Trac #34859: sagelib: Remove unnecessary import of 
>> typing_extensions
>> b6a76d7a848 Trac #34857: bump giac's GIAC_MIN_VERSION to 1.9
>> 6a8155e6e5d Trac #34854: molien_series() should not use GAP's 
>> VirtualCharacter
>> dddf3ca0b08 Trac #34853: sage-env: Fix misconfiguration of pip
>> 6f631021ac4 Trac #34847: modernize some for loops in cython files
>> 9ffabc7f3e1 Trac #34844: removal of some unused imports about string 
>> conversion
>> 4b50bc2af27 Trac #34843: pep8 cleanup in ore_polynomial_element.pyx
>> bdd14cec19b Trac #34837: fix E502 in some pyx files
>> 172ad73ae38 Trac #34836: fix E271 and E272 in rings/ and schemes/
>> 3d861266040 Trac #34749: Packages dsdp, scip_sdp
>> 64d232b5bfd Trac #31329: Update scipoptsuite to 8.0.2 (now open source!), 
>> rename to scip
>> 2dcafb3ac57 Trac #34839: Support tox 4
>> ad68f15d97f Trac #34648: Developer's guide: warn the transition to GitHub 
>> and add links to the transition guide
>> acebbc1a9e8 Trac #34824: do not include parent in hash of parking 
>> functions
>> 9a7b6310dde Trac #34818: Error when defining differentials over GCA's 
>> with relations.
>> bb63c582122 Trac #34807: Add Construction of Hadamard matrices up to 
>> order 664
>> 8a0b16d93be Trac #34804: Deprecate sage.interfaces is_...Element functions
>> 80f8f950e95 Trac #34793: clean 3 files inside modular
>> b0cc282500e Trac #34547: Interfaces: use more lazy imports, restore 
>> top-level functions maxima_console etc.
>> 5905da7ebfc Trac #33915: inseparable elliptic-curve isogenies
>> 98b22ebdcf7 Trac #32826: scalar-multiplication endomorphisms of elliptic 
>> curves
>> 4f11a750df9 Trac #8744: Improve add_edge in BipartiteGraph to make it 
>> independent from the current coloring
>> 08aa2f8edaa Trac #33842: Upgrade python to 3.11
>> 75bedf95960 Trac #34783: various details in combinat/
>> 33fa8715bd5 Trac #34742: Optional package soplex (dependency of scip)
>> f84915f69d8 Trac #34726: Optional package papilo (dependency of scip)
>> e5cf1c0d9f2 Trac #34694: Bug in ExteriorAlgebra interior product
>> ebb9b611d02 Trac #34416: Manage pexpect logs created during doctesting
>> 962177a2da1 Trac #33907: interfaces/expect.py random test failure
>> 66409243991 Trac #16522: lazy_import doesn't resolve properly when 
>> indirectly imported
>> 2114066f877 (tag: 9.8.beta6) Updated SageMath version to 9.8.beta6
>>
>>

-- 
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/0c95e400-d127-4904-a0a5-49ec83822651n%40googlegroups.com.

Reply via email to