sagemath/sage

Make arith doctests ready for random seeds

Closed this issue · 17 comments

kliem commented

This ticket makes

sage -t --long --random-seed=n src/sage/arith/

pass for different values n than just 0.

Depends on #29962

Component: doctest framework

Author: Jonathan Kliem

Branch/Commit: 99b1ca1

Reviewer: Dima Pasechnik

Issue created by migration from https://trac.sagemath.org/ticket/29970

kliem commented

New commits:

da1c6bestart from a "random" random seed for doctesting
b7b836dmake random seed reproducible
eedbe5edocument random_seed
998b1b9default random seed 0 for now
1d7b00edash instead of underscore for command line options
08e9b18make arith fuzz ready
kliem commented

Commit: 08e9b18

kliem commented

Branch: public/29970

kliem commented

Author: Jonathan Kliem

kliem commented
comment:2

Merge conflict.

I also need to go through it again and check I respected the design decision in #29935.

kliem commented

Changed branch from public/29970 to public/29970-reb

kliem commented

New commits:

b31e2d5Merge branch 'public/29962' of git://trac.sagemath.org/sage into public/29962-reb
2f30dd9small fixes
b62f781doctests do not start from a random seed by default yet
1d99129fix merge conflict
1924456Merge branch 'public/29970' of git://trac.sagemath.org/sage into public/29970-reb
kliem commented

Changed commit from 08e9b18 to 1924456

Changed commit from 1924456 to c8d01b9

Branch pushed to git repo; I updated commit sha1. New commits:

c8d01b9respect desing decisions in src/sage/arith/misc.py
kliem commented
comment:5

There is probably a better way to fix the tests in src/sage/arith/multi_modular.pyx, but I don't understand what is going on and from the documentation it is not clear to me what MultiModularBasis_base(height) is supposed to return.

comment:7

Setting new milestone based on a cursory review of ticket status, priority, and last modification date.

Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:

99b1ca1make arith ready for random doctesting

Changed commit from c8d01b9 to 99b1ca1

Reviewer: Dima Pasechnik

comment:10

lgtm

Changed branch from public/29970-reb to 99b1ca1