Opened 13 years ago
Closed 13 years ago
#1469 closed defect (wontfix)
sage-doctest should import the namespace of the file
Reported by: | burcin | Owned by: | burcin |
---|---|---|---|
Priority: | minor | Milestone: | sage-2.9 |
Component: | doctest coverage | Keywords: | |
Cc: | Merged in: | ||
Authors: | Reviewers: | ||
Report Upstream: | Work issues: | ||
Branch: | Commit: | ||
Dependencies: | Stopgaps: |
Description
The doctest script sage-doctest should try to import the namespace of the file being tested. It is not very convenient to add
from sage.foo import bar
at the beginning of every doctest in a file.
This would simplify some of the doctests in ~100 files, removing ~450 lines.
Importing the module might have an impact on the speed of the doctests.
Change History (1)
Note: See
TracTickets for help on using
tickets.