diff options
author | Raymond Hettinger <python@rcn.com> | 2014-05-26 00:40:25 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2014-05-26 00:40:25 (GMT) |
commit | 92df7529cb6c863d0fcd3247829b24833f62e285 (patch) | |
tree | f1983c544736eaeda03ec426ba8000f65d011bbe /Lib/test/test_random.py | |
parent | 1f94efc6265c77e9b45058a88eb86f8d49c2c7c7 (diff) | |
download | cpython-92df7529cb6c863d0fcd3247829b24833f62e285.zip cpython-92df7529cb6c863d0fcd3247829b24833f62e285.tar.gz cpython-92df7529cb6c863d0fcd3247829b24833f62e285.tar.bz2 |
Issue 13355: Make random.triangular degrade gracefully when low == high.
Diffstat (limited to 'Lib/test/test_random.py')
-rw-r--r-- | Lib/test/test_random.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_random.py b/Lib/test/test_random.py index ba447ee..1a5a86b 100644 --- a/Lib/test/test_random.py +++ b/Lib/test/test_random.py @@ -541,7 +541,7 @@ class TestDistributions(unittest.TestCase): for variate, args, expected in [ (g.uniform, (10.0, 10.0), 10.0), (g.triangular, (10.0, 10.0), 10.0), - #(g.triangular, (10.0, 10.0, 10.0), 10.0), + (g.triangular, (10.0, 10.0, 10.0), 10.0), (g.expovariate, (float('inf'),), 0.0), (g.vonmisesvariate, (3.0, float('inf')), 3.0), (g.gauss, (10.0, 0.0), 10.0), |