mirror of
https://github.com/python/cpython.git
synced 2025-11-24 20:30:18 +00:00
bunch more __all__ lists
also modified check_all function to suppress all warnings since they aren't relevant to what this test is doing (allows quiet checking of regsub, for instance)
This commit is contained in:
parent
04f1d37471
commit
0de65807e6
28 changed files with 111 additions and 1 deletions
|
|
@ -76,6 +76,12 @@ used to "move backward in time":
|
|||
from math import log as _log, exp as _exp, pi as _pi, e as _e
|
||||
from math import sqrt as _sqrt, acos as _acos, cos as _cos, sin as _sin
|
||||
|
||||
__all__ = ["Random","seed","random","uniform","randint","choice",
|
||||
"randrange","shuffle","normalvariate","lognormvariate",
|
||||
"cunifvariate","expovariate","vonmisesvariate","gammavariate",
|
||||
"stdgamma","gauss","betavariate","paretovariate","weibullvariate",
|
||||
"getstate","setstate","jumpahead","whseed"]
|
||||
|
||||
def _verify(name, expected):
|
||||
computed = eval(name)
|
||||
if abs(computed - expected) > 1e-7:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue