summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_random.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2014-05-26 00:40:25 (GMT)
committerRaymond Hettinger <python@rcn.com>2014-05-26 00:40:25 (GMT)
commit92df7529cb6c863d0fcd3247829b24833f62e285 (patch)
treef1983c544736eaeda03ec426ba8000f65d011bbe /Lib/test/test_random.py
parent1f94efc6265c77e9b45058a88eb86f8d49c2c7c7 (diff)
downloadcpython-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.py2
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),