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

Commit

Permalink
src/sage/misc/lazy_import.pyx: Fix markup of doctest output
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Koeppe committed Oct 6, 2021
1 parent 9830e4e commit dadfa07
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/sage/misc/lazy_import.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ it is actually resolved after the startup, so that the developer knows
that (s)he can remove the flag::
sage: ZZ
doctest:warning...
UserWarning: Option ``at_startup=True`` for lazy import ZZ not needed anymore
Integer Ring
Expand Down Expand Up @@ -149,6 +150,7 @@ cpdef test_fake_startup():
sage: sage.misc.lazy_import.test_fake_startup()
sage: lazy_import('sage.rings.all', 'ZZ', 'my_ZZ')
sage: my_ZZ(123)
doctest:warning...
UserWarning: Resolving lazy import ZZ during startup
123
sage: sage.misc.lazy_import.finish_startup()
Expand Down Expand Up @@ -233,6 +235,7 @@ cdef class LazyImport(object):
False
sage: my_integer_ring = LazyImport('sage.rings.all', 'ZZ', at_startup=True)
sage: my_integer_ring
doctest:warning...
UserWarning: Option ``at_startup=True`` for lazy import ZZ not needed anymore
Integer Ring
"""
Expand Down

0 comments on commit dadfa07

Please sign in to comment.