Opened 10 years ago
Closed 5 years ago
#12721 closed defect (invalid)
Make doctests pass when run in a random order
Reported by: | roed | Owned by: | roed |
---|---|---|---|
Priority: | major | Milestone: | sage-duplicate/invalid/wontfix |
Component: | doctest framework | Keywords: | |
Cc: | tscrim | Merged in: | |
Authors: | Reviewers: | ||
Report Upstream: | N/A | Work issues: | |
Branch: | Commit: | ||
Dependencies: | #12415 | Stopgaps: |
Description
Doctests should succeed even if the tests in a given file are run in a different order, as long as the doctests in each block get run consecutively. But there are various points in the Sage library where doctests depend on the order they're run in, often masking bugs. It would be great if someone would systematically try to make doctests for all the files in Sage pass in this mode.
A good start would be to add a way to rerun doctests in a given order after a doctest fails.
Change History (8)
comment:1 Changed 10 years ago by
comment:2 Changed 10 years ago by
- Summary changed from Make doctetests pass when run in a random order to Make doctests pass when run in a random order
Would it be possible to make the doctester reset state between individual docstrings? That seems like the "correct" way to do it, but Python is such a stateful language that I'm not sure how possible that even is.
comment:3 Changed 9 years ago by
- Component changed from doctest to doctest framework
- Owner changed from mvngu to roed
comment:4 Changed 9 years ago by
- Milestone changed from sage-5.9 to sage-wishlist
Moving to "wishlist" as I don't think it's realistic that it will be fixed.
comment:5 Changed 6 years ago by
- Milestone changed from sage-wishlist to sage-duplicate/invalid/wontfix
- Status changed from new to needs_review
I think this is a duplicate of #9461. Travis, click to positive review if you agree.
comment:6 Changed 6 years ago by
- Cc tscrim added
comment:8 Changed 5 years ago by
- Resolution set to invalid
- Status changed from positive_review to closed
See #9461