MCPcopy Create free account
hub / github.com/numpy/numpy / test_getstate

Method test_getstate

numpy/random/tests/test_direct.py:348–352  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

346 assert other_ctypes_interface is ctypes_interface
347
348 def test_getstate(self):
349 bit_generator = self.bit_generator(*self.data1['seed'])
350 state = bit_generator.state
351 alt_state = bit_generator.__getstate__()
352 assert_state_equal(state, alt_state)
353
354
355class TestPhilox(Base):

Callers

nothing calls this directly

Calls 2

assert_state_equalFunction · 0.85
__getstate__Method · 0.45

Tested by

no test coverage detected