This repository has been archived by the owner on Jan 30, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Trac #18454: Call set_random_seed() before all random doctests.
Apparently, Sage implicitly sets the random seed to zero before every doctest. This produces repeatable test cases, but sort of defeats the purpose of random testing. Nevertheless, we can set the seed using some platform-specific source of randomness by calling set_random_seed() at the beginning of each doctest block. This commit adds the necessary calls, and fixes two test bugs that went unnoticed due to the non-random behavior.
- Loading branch information
Showing
1 changed file
with
39 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters