|
1 |
| -""" |
2 |
| -Tests for deprecations of imports in global namespace from :trac:`28064`:: |
3 |
| -
|
4 |
| - sage: igusa_clebsch_invariants |
5 |
| - doctest:warning...: |
6 |
| - DeprecationWarning: |
7 |
| - Importing igusa_clebsch_invariants from here is deprecated; |
8 |
| - please use "from sage.schemes.hyperelliptic_curves.invariants import igusa_clebsch_invariants" instead. |
9 |
| - See https://github.com/sagemath/sage/issues/28064 for details. |
10 |
| - ... |
11 |
| -
|
12 |
| - sage: absolute_igusa_invariants_kohel |
13 |
| - doctest:warning...: |
14 |
| - DeprecationWarning: |
15 |
| - Importing absolute_igusa_invariants_kohel from here is deprecated; |
16 |
| - please use "from sage.schemes.hyperelliptic_curves.invariants import absolute_igusa_invariants_kohel" instead. |
17 |
| - See https://github.com/sagemath/sage/issues/28064 for details. |
18 |
| - ... |
19 |
| -
|
20 |
| - sage: absolute_igusa_invariants_wamelen |
21 |
| - doctest:warning...: |
22 |
| - DeprecationWarning: |
23 |
| - Importing absolute_igusa_invariants_wamelen from here is deprecated; |
24 |
| - please use "from sage.schemes.hyperelliptic_curves.invariants import absolute_igusa_invariants_wamelen" instead. |
25 |
| - See https://github.com/sagemath/sage/issues/28064 for details. |
26 |
| - ... |
27 |
| -
|
28 |
| - sage: clebsch_invariants |
29 |
| - doctest:warning...: |
30 |
| - DeprecationWarning: |
31 |
| - Importing clebsch_invariants from here is deprecated; |
32 |
| - please use "from sage.schemes.hyperelliptic_curves.invariants import clebsch_invariants" instead. |
33 |
| - See https://github.com/sagemath/sage/issues/28064 for details. |
34 |
| - ... |
35 |
| -""" |
36 |
| -from sage.misc.lazy_import import lazy_import |
37 |
| - |
38 | 1 | from sage.schemes.hyperelliptic_curves.constructor import HyperellipticCurve
|
39 | 2 | from sage.schemes.hyperelliptic_curves.kummer_surface import KummerSurface
|
40 |
| -lazy_import('sage.schemes.hyperelliptic_curves.invariants', |
41 |
| - ['igusa_clebsch_invariants', 'absolute_igusa_invariants_kohel', |
42 |
| - 'absolute_igusa_invariants_wamelen', 'clebsch_invariants'], |
43 |
| - deprecation=28064) |
44 | 3 | from sage.schemes.hyperelliptic_curves.mestre import (
|
45 | 4 | Mestre_conic, HyperellipticCurve_from_invariants)
|
46 | 5 | from sage.schemes.hyperelliptic_curves import monsky_washnitzer
|
47 |
| -del lazy_import |
0 commit comments