-
-
Notifications
You must be signed in to change notification settings - Fork 659
Closed
Labels
Description
Steps To Reproduce
./sage -t --warn-long 5.0 --random-seed=233797780117811162927400537850871848271 src/sage/interfaces/polymake.py
Expected Behavior
All tests passd!
Actual Behavior
sage -t --warn-long 5.0 --random-seed=233797780117811162927400537850871848271 src/sage/interfaces/polymake.py
**********************************************************************
File "src/sage/interfaces/polymake.py", line 450, in sage.interfaces.polymake.PolymakeAbstract.clear
Failed example:
polymake._available_vars = []
Exception raised:
Traceback (most recent call last):
File "/home/zhongcx/sage/src/sage/doctest/forker.py", line 730, in _run
self.compile_and_execute(example, compiler, test.globs)
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/zhongcx/sage/src/sage/doctest/forker.py", line 1154, in compile_and_execute
exec(compiled, globs)
~~~~^^^^^^^^^^^^^^^^^
File "<doctest sage.interfaces.polymake.PolymakeAbstract.clear[1]>", line 1, in <module>
polymake._available_vars = []
^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'sage.misc.lazy_import.LazyImport' object has no attribute '_available_vars' and no __dict__ for setting new attributes
**********************************************************************
File "src/sage/interfaces/polymake.py", line 453, in sage.interfaces.polymake.PolymakeAbstract.clear
Failed example:
len(polymake._available_vars)
Expected:
1
Got:
2
**********************************************************************
File "src/sage/interfaces/polymake.py", line 455, in sage.interfaces.polymake.PolymakeAbstract.clear
Failed example:
polymake._next_var_name() in old
Expected:
True
Got:
False
**********************************************************************
1 item had failures:
3 of 7 in sage.interfaces.polymake.PolymakeAbstract.clear
[257 tests, 3 failures, 2.43s wall]
Additional Information
I have opened a PR to fix it. It needs to import polymake again
Environment
- OS: Ubuntu 25.04
- Sage Version: 10.7 beta8
Checklist
- I have searched the existing issues for a bug report that matches the one I want to file, without success.
- I have read the documentation and troubleshoot guide