summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2016-11-21 23:32:08 (GMT)
committerRaymond Hettinger <python@rcn.com>2016-11-21 23:32:08 (GMT)
commit6023d334337256c8e3bc0eb11e6952d0e021aec5 (patch)
treed36af99d9a507d74adcb2a47b2f1542aae4080cc
parent7f946195558b3681b81707c52b721d067373acee (diff)
downloadcpython-6023d334337256c8e3bc0eb11e6952d0e021aec5.zip
cpython-6023d334337256c8e3bc0eb11e6952d0e021aec5.tar.gz
cpython-6023d334337256c8e3bc0eb11e6952d0e021aec5.tar.bz2
Issue #28743: Reduce memory consumption for random module tests
-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 84a1e83..5b6a4f0 100644
--- a/Lib/test/test_random.py
+++ b/Lib/test/test_random.py
@@ -633,7 +633,7 @@ class MersenneTwister_TestBasicOps(TestBasicOps, unittest.TestCase):
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)