From: Raymond Hettinger Date: Mon, 21 Nov 2016 23:32:08 +0000 (-0800) Subject: Issue #28743: Reduce memory consumption for random module tests X-Git-Tag: v3.6.0b4~7 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6023d334337256c8e3bc0eb11e6952d0e021aec5;p=thirdparty%2FPython%2Fcpython.git Issue #28743: Reduce memory consumption for random module tests --- diff --git a/Lib/test/test_random.py b/Lib/test/test_random.py index 84a1e831fd75..5b6a4f06baaf 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)