Browse Source

Issue #28743: Reduce memory consumption for random module tests

pull/9921/head
Raymond Hettinger 9 years ago
parent
commit
6023d33433
  1. 2
      Lib/test/test_random.py

2
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)

Loading…
Cancel
Save