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

Method test_invalid_array_shape

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

Source from the content-addressed store, hash-verified

100 assert_raises(ValueError, random.RandomState, [1, -2, 4294967296])
101
102 def test_invalid_array_shape(self):
103 # gh-9832
104 assert_raises(ValueError, random.RandomState, np.array([],
105 dtype=np.int64))
106 assert_raises(ValueError, random.RandomState, [[1, 2, 3]])
107 assert_raises(ValueError, random.RandomState, [[1, 2, 3],
108 [4, 5, 6]])
109
110 def test_cannot_seed(self):
111 rs = random.RandomState(PCG64(0))

Callers

nothing calls this directly

Calls 1

assert_raisesFunction · 0.90

Tested by

no test coverage detected