Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Update doctest output for changed lazy_import deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Koeppe committed Jul 19, 2022
1 parent adb89ff commit a77b971
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 16 deletions.
4 changes: 2 additions & 2 deletions src/sage/functions/other.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
sage: from sage.functions.other import beta
sage: beta(x, x)
doctest:...: DeprecationWarning:
Importing beta from here is deprecated. If you need to use it, please import it directly from sage.functions.gamma
doctest:warning...: DeprecationWarning:
Importing beta from here is deprecated; please use "from sage.functions.gamma import beta" instead.
See http://trac.sagemath.org/24411 for details.
beta(x, x)
"""
Expand Down
5 changes: 2 additions & 3 deletions src/sage/groups/matrix_gps/homset.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,8 @@ def is_MatrixGroupHomset(x):
sage: from sage.groups.matrix_gps.homset import is_MatrixGroupHomset
sage: is_MatrixGroupHomset(4)
doctest:...: DeprecationWarning:
Importing MatrixGroupHomset from here is deprecated.
If you need to use it, please import it directly from
sage.groups.libgap_morphism
Importing MatrixGroupHomset from here is deprecated; please use
"from sage.groups.libgap_morphism import GroupHomset_libgap as MatrixGroupHomset" instead.
See https://trac.sagemath.org/25444 for details.
False
Expand Down
4 changes: 2 additions & 2 deletions src/sage/modular/modform/find_generators.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
sage: find_generators(ModularFormsRing(1))
doctest:warning
...
DeprecationWarning: Importing find_generators from here is deprecated. If you need to use it, please import it directly from sage.modular.modform.ring
DeprecationWarning: Importing find_generators from here is deprecated; please use "from sage.modular.modform.ring import find_generators" instead.
See https://trac.sagemath.org/31559 for details.
[(4,
1 + 240*q + 2160*q^2 + 6720*q^3 + 17520*q^4 + 30240*q^5 + 60480*q^6 + 82560*q^7 + 140400*q^8 + 181680*q^9 + O(q^10)),
Expand All @@ -45,7 +45,7 @@
sage: _span_of_forms_in_weight(forms, 12, prec=5)
doctest:warning
...
DeprecationWarning: Importing _span_of_forms_in_weight from here is deprecated. If you need to use it, please import it directly from sage.modular.modform.ring
DeprecationWarning: Importing _span_of_forms_in_weight from here is deprecated; please use "from sage.modular.modform.ring import _span_of_forms_in_weight" instead.
See https://trac.sagemath.org/31559 for details.
Vector space of degree 5 and dimension 2 over Rational Field
Basis matrix:
Expand Down
9 changes: 6 additions & 3 deletions src/sage/rings/all.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,22 @@
sage: PowerSeries
doctest:warning...:
DeprecationWarning:
Importing PowerSeries from here is deprecated. If you need to use it, please import it directly from sage.rings.power_series_ring_element
Importing PowerSeries from here is deprecated;
please use "from sage.rings.power_series_ring_element import PowerSeries" instead.
See https://trac.sagemath.org/33602 for details.
...
sage: PuiseuxSeries
doctest:warning...:
DeprecationWarning:
Importing PuiseuxSeries from here is deprecated. If you need to use it, please import it directly from sage.rings.puiseux_series_ring_element
Importing PuiseuxSeries from here is deprecated;
please use "from sage.rings.puiseux_series_ring_element import PuiseuxSeries" instead.
See https://trac.sagemath.org/33602 for details.
...
sage: LaurentSeries
doctest:warning...:
DeprecationWarning:
Importing LaurentSeries from here is deprecated. If you need to use it, please import it directly from sage.rings.laurent_series_ring_element
Importing LaurentSeries from here is deprecated;
please use "from sage.rings.laurent_series_ring_element import LaurentSeries" instead.
See https://trac.sagemath.org/33602 for details.
...
"""
Expand Down
12 changes: 8 additions & 4 deletions src/sage/schemes/hyperelliptic_curves/all.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,32 @@
sage: igusa_clebsch_invariants
doctest:warning...:
DeprecationWarning:
Importing igusa_clebsch_invariants from here is deprecated. If you need to use it, please import it directly from sage.schemes.hyperelliptic_curves.invariants
Importing igusa_clebsch_invariants from here is deprecated;
please use "from sage.schemes.hyperelliptic_curves.invariants import igusa_clebsch_invariants" instead.
See https://trac.sagemath.org/28064 for details.
...
sage: absolute_igusa_invariants_kohel
doctest:warning...:
DeprecationWarning:
Importing absolute_igusa_invariants_kohel from here is deprecated. If you need to use it, please import it directly from sage.schemes.hyperelliptic_curves.invariants
Importing absolute_igusa_invariants_kohel from here is deprecated;
please use "from sage.schemes.hyperelliptic_curves.invariants import absolute_igusa_invariants_kohel" instead.
See https://trac.sagemath.org/28064 for details.
...
sage: absolute_igusa_invariants_wamelen
doctest:warning...:
DeprecationWarning:
Importing absolute_igusa_invariants_wamelen from here is deprecated. If you need to use it, please import it directly from sage.schemes.hyperelliptic_curves.invariants
Importing absolute_igusa_invariants_wamelen from here is deprecated;
please use "from sage.schemes.hyperelliptic_curves.invariants import absolute_igusa_invariants_wamelen" instead.
See https://trac.sagemath.org/28064 for details.
...
sage: clebsch_invariants
doctest:warning...:
DeprecationWarning:
Importing clebsch_invariants from here is deprecated. If you need to use it, please import it directly from sage.schemes.hyperelliptic_curves.invariants
Importing clebsch_invariants from here is deprecated;
please use "from sage.schemes.hyperelliptic_curves.invariants import clebsch_invariants" instead.
See https://trac.sagemath.org/28064 for details.
...
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@
DeprecationWarning: the package sage.finance is deprecated
See https://trac.sagemath.org/32427 for details.
doctest:warning...
Importing finance from here is deprecated. If you need to use it, please import it directly from sage.finance
Importing finance from here is deprecated; please use "from sage.finance import all as finance" instead.
See https://trac.sagemath.org/32427 for details.
doctest:warning...
Importing TimeSeries from here is deprecated. If you need to use it, please import it directly from sage.stats.time_series
Importing TimeSeries from here is deprecated; please use "from sage.stats.time_series import TimeSeries" instead.
See https://trac.sagemath.org/32427 for details.
Graphics object consisting of 20 graphics primitives
Expand Down

0 comments on commit a77b971

Please sign in to comment.