MCPcopy Index your code
hub / github.com/python/cpython / test_bug_42008

Method test_bug_42008

Lib/test/test_random.py:644–650  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

642
643 @test.support.cpython_only
644 def test_bug_42008(self):
645 # _random.Random should call seed with first element of arg tuple
646 import _random
647 r1 = _random.Random()
648 r1.seed(8675309)
649 r2 = _random.Random(8675309)
650 self.assertEqual(r1.random(), r2.random())
651
652
653class MersenneTwister_TestBasicOps(TestBasicOps, unittest.TestCase):

Callers

nothing calls this directly

Calls 3

seedMethod · 0.95
assertEqualMethod · 0.45
randomMethod · 0.45

Tested by

no test coverage detected