sage.tensor.modules: make doctests involving SR optional
Closed this issue · 18 comments
After #32415 and #32708, the code in the module sage.tensor.modules does no longer contain any dependency on symbolic parts of Sage. There remains however some doctests that invokes SR. They have been introduced to check a bug fix performed in #22520. In view of Sage modularization, they are marked # optional - sage.symbolic in this ticket.
Depends on #32708
Depends on #32614
Component: refactoring
Author: Eric Gourgoulhon
Branch/Commit: c3ff514
Reviewer: Matthias Koeppe
Issue created by migration from https://trac.sagemath.org/ticket/32712
Commit: f46cce7
Author: Eric Gourgoulhon
see src/sage/features/sagemath.py (after merging #32614): just sage.symbolic
Description changed:
---
+++
@@ -1 +1 @@
-After #32415 and #32708, the code in the module `sage.tensor.modules` does no longer contain any dependency on symbolic parts of Sage. There remains however some doctests that invokes `SR`. They have been introduced to check a bug fix performed in #22520. Since this was 5 years ago, it seems pretty safe to remove them for the benefit of Sage modularization. This is performed in this ticket.
+After #32415 and #32708, the code in the module `sage.tensor.modules` does no longer contain any dependency on symbolic parts of Sage. There remains however some doctests that invokes `SR`. They have been introduced to check a bug fix performed in #22520. In view of Sage modularization, they are marked `# optional - sage.symbolic` in this ticket.New commits:
c3ff514 | Make SR doctests optional in sage.tensor.modules (#32712) |
Here we go...
Reviewer: Matthias Koeppe
Tested with #32601:
$ ./bootstrap && make sagelib-build-deps && ./sage -sh -c '(cd pkgs/sagemath-standard-no-symbolics && SAGE_NUM_THREADS=16 tox -v -v -v -e py39-sagewheels-nopypi)'
[...........]
$ pkgs/sagemath-standard-no-symbolics/.tox/py39-sagewheels-nopypi/bin/sage -tp src/sage/tensor
too many failed tests, not using stored timings
Running doctests with ID 2021-10-18-23-57-24-ccafbd20.
Using --optional=argcomplete,build,ccache,dochtml,e_antic,homebrew,normaliz,pip,pynormaliz,sage,sage.rings.real_double,sage_spkg
Sorting sources by runtime so that slower doctests are run first....
Doctesting 19 files using 8 threads.
sage -t --random-seed=0 src/sage/tensor/modules/free_module_morphism.py
[251 tests, 0.21 s]
sage -t --random-seed=0 src/sage/tensor/modules/free_module_automorphism.py
[243 tests, 0.20 s]
sage -t --random-seed=0 src/sage/tensor/modules/free_module_alt_form.py
[170 tests, 0.28 s]
sage -t --random-seed=0 src/sage/tensor/modules/alternating_contr_tensor.py
[150 tests, 0.32 s]
sage -t --random-seed=0 src/sage/tensor/modules/free_module_linear_group.py
[112 tests, 0.16 s]
sage -t --random-seed=0 src/sage/tensor/modules/finite_rank_free_module.py
[523 tests, 0.42 s]
sage -t --random-seed=0 src/sage/tensor/modules/ext_pow_free_module.py
[187 tests, 0.15 s]
sage -t --random-seed=0 src/sage/tensor/modules/free_module_basis.py
[166 tests, 0.14 s]
sage -t --random-seed=0 src/sage/tensor/modules/free_module_homset.py
[97 tests, 0.14 s]
sage -t --random-seed=0 src/sage/tensor/__init__.py
[0 tests, 0.00 s]
sage -t --random-seed=0 src/sage/tensor/all.py
[0 tests, 0.00 s]
sage -t --random-seed=0 src/sage/tensor/modules/__init__.py
[0 tests, 0.00 s]
sage -t --random-seed=0 src/sage/tensor/modules/all.py
[0 tests, 0.00 s]
sage -t --random-seed=0 src/sage/tensor/modules/format_utilities.py
[64 tests, 0.04 s]
sage -t --random-seed=0 src/sage/tensor/modules/free_module_element.py
[62 tests, 0.08 s]
sage -t --random-seed=0 src/sage/tensor/modules/tensor_free_module.py
[129 tests, 0.14 s]
sage -t --random-seed=0 src/sage/tensor/modules/free_module_tensor.py
[638 tests, 2.23 s]
sage -t --random-seed=0 src/sage/tensor/modules/comp.py
[980 tests, 3.14 s]
sage -t --random-seed=0 src/sage/tensor/modules/tensor_with_indices.py
[233 tests, 4.01 s]
----------------------------------------------------------------------
All tests passed!
----------------------------------------------------------------------
Total time for all tests: 4.1 seconds
cpu time: 11.0 seconds
cumulative wall time: 11.6 seconds
Thank you for the review and the test!
Changed branch from public/manifolds/SR_doctests_optional_in_tensor_modules-32712 to c3ff514