[Python-checkins] cpython (3.6): Issue #28743: Reduce memory consumption for random module tests
raymond.hettinger
python-checkins at python.org
Mon Nov 21 18:32:32 EST 2016
https://hg.python.org/cpython/rev/3551fca2c6ae
changeset: 105314:3551fca2c6ae
branch: 3.6
parent: 105312:784b6a0bf2bf
user: Raymond Hettinger <python at rcn.com>
date: Mon Nov 21 15:32:08 2016 -0800
summary:
Issue #28743: Reduce memory consumption for random module tests
files:
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
--- a/Lib/test/test_random.py
+++ b/Lib/test/test_random.py
@@ -633,7 +633,7 @@
def test_choices_algorithms(self):
# The various ways of specifying weights should produce the same results
choices = self.gen.choices
- n = 13132817
+ n = 104729
self.gen.seed(8675309)
a = self.gen.choices(range(n), k=10000)
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list