Closed as not planned
Closed as not planned
Description
Seen in https://buildbot.python.org/all/#/builders/310/builds/1665/steps/6/logs/stdio
======================================================================
ERROR: test_kde_random (test.test_statistics.TestKDE.test_kde_random) (kernel='gauss')
----------------------------------------------------------------------
Traceback (most recent call last):
File "/root/buildarea/pull_request.angelico-debian-amd64/build/Lib/test/test_statistics.py", line 2518, in test_kde_random
big_sample = sorted([rand() for i in range(n)])
~~~~^^
File "/root/buildarea/pull_request.angelico-debian-amd64/build/Lib/statistics.py", line 1122, in rand
return choice(data) + h * invcdf(random())
~~~~~~^^^^^^
File "/root/buildarea/pull_request.angelico-debian-amd64/build/Lib/random.py", line 352, in choice
return seq[self._randbelow(len(seq))]
~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: 'Random' object is not subscriptable
----------------------------------------------------------------------
cpython/Lib/test/test_statistics.py
Line 2518 in c989e74
Lines 1117 to 1122 in c989e74
Lines 345 to 352 in c989e74
Lines 225 to 243 in c989e74