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

Method test_invalid_scalar

numpy/random/tests/test_randomstate.py:89–92  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

87 assert_equal(s.randint(1000), 265)
88
89 def test_invalid_scalar(self):
90 # seed must be an unsigned 32 bit integer
91 assert_raises(TypeError, random.RandomState, -0.5)
92 assert_raises(ValueError, random.RandomState, -1)
93
94 def test_invalid_array(self):
95 # seed must be an unsigned 32 bit integer

Callers

nothing calls this directly

Calls 1

assert_raisesFunction · 0.90

Tested by

no test coverage detected