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

Method test_seed_no_mutate_bug_44018

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

Source from the content-addressed store, hash-verified

69 self.assertRaises(TypeError, type(self.gen), [])
70
71 def test_seed_no_mutate_bug_44018(self):
72 a = bytearray(b'1234')
73 self.gen.seed(a)
74 self.assertEqual(a, bytearray(b'1234'))
75
76 @unittest.mock.patch('random._urandom') # os.urandom
77 def test_seed_when_randomness_source_not_found(self, urandom_mock):

Callers

nothing calls this directly

Calls 2

seedMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected