summaryrefslogtreecommitdiffstats
path: root/Lib/random.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2003-01-05 09:20:06 (GMT)
committerRaymond Hettinger <python@rcn.com>2003-01-05 09:20:06 (GMT)
commit3dd990c53a8d5c24bc7f1555872b0892f0e7cdf8 (patch)
treef7100d2d5f0da047f308debe2f8e7fcfe8ea56f0 /Lib/random.py
parent541ceec3e6e0b5b02c2d299ebf8af040d6193a5e (diff)
downloadcpython-3dd990c53a8d5c24bc7f1555872b0892f0e7cdf8.zip
cpython-3dd990c53a8d5c24bc7f1555872b0892f0e7cdf8.tar.gz
cpython-3dd990c53a8d5c24bc7f1555872b0892f0e7cdf8.tar.bz2
Move the statistical tests for four distributions into the unittest suite.
Diffstat (limited to 'Lib/random.py')
-rw-r--r--Lib/random.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/Lib/random.py b/Lib/random.py
index 4ddac4c..ccac440 100644
--- a/Lib/random.py
+++ b/Lib/random.py
@@ -752,7 +752,6 @@ def _test(N=2000):
_test_generator(N, 'normalvariate(0.0, 1.0)')
_test_generator(N, 'lognormvariate(0.0, 1.0)')
_test_generator(N, 'cunifvariate(0.0, 1.0)')
- _test_generator(N, 'expovariate(1.0)')
_test_generator(N, 'vonmisesvariate(0.0, 1.0)')
_test_generator(N, 'gammavariate(0.01, 1.0)')
_test_generator(N, 'gammavariate(0.1, 1.0)')
@@ -765,8 +764,6 @@ def _test(N=2000):
_test_generator(N, 'gammavariate(200.0, 1.0)')
_test_generator(N, 'gauss(0.0, 1.0)')
_test_generator(N, 'betavariate(3.0, 3.0)')
- _test_generator(N, 'paretovariate(1.0)')
- _test_generator(N, 'weibullvariate(1.0, 1.0)')
_test_generator(N, '_sample_generator(50, 5)') # expected s.d.: 14.4
_test_generator(N, '_sample_generator(50, 45)') # expected s.d.: 14.4