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

Method setup_class

numpy/random/tests/test_smoke.py:791–800  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

789class TestDefaultRNG(RNG):
790 @classmethod
791 def setup_class(cls):
792 # This will duplicate some tests that directly instantiate a fresh
793 # Generator(), but that's okay.
794 cls.bit_generator = PCG64
795 cls.advance = 2**63 + 2**31 + 2**15 + 1
796 cls.seed = [12345]
797 cls.rg = np.random.default_rng(*cls.seed)
798 cls.initial_state = cls.rg.bit_generator.state
799 cls.seed_vector_bits = 64
800 cls._extra_setup()
801
802 def test_default_is_pcg64(self):
803 # In order to change the default BitGenerator, we'll go through

Callers

nothing calls this directly

Calls 1

_extra_setupMethod · 0.80

Tested by

no test coverage detected