]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #28743: Reduce memory consumption for random module tests
authorRaymond Hettinger <python@rcn.com>
Mon, 21 Nov 2016 23:32:08 +0000 (15:32 -0800)
committerRaymond Hettinger <python@rcn.com>
Mon, 21 Nov 2016 23:32:08 +0000 (15:32 -0800)
Lib/test/test_random.py

index 84a1e831fd75a94bf0f987f447c2836ff97a068f..5b6a4f06baaf41b0b9841162b31c052ac8da1979 100644 (file)
@@ -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)