MCPcopy
hub / github.com/numpy/numpy / test_invalid_scalar

Method test_invalid_scalar

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

Source from the content-addressed store, hash-verified

91 assert_equal(s.randint(1000), 265)
92
93 def test_invalid_scalar(self):
94 # seed must be an unsigned 32 bit integer
95 assert_raises(TypeError, random.RandomState, -0.5)
96 assert_raises(ValueError, random.RandomState, -1)
97
98 def test_invalid_array(self):
99 # 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