(self)
| 96 | assert_raises(ValueError, random.RandomState, -1) |
| 97 | |
| 98 | def test_invalid_array(self): |
| 99 | # seed must be an unsigned 32 bit integer |
| 100 | assert_raises(TypeError, random.RandomState, [-0.5]) |
| 101 | assert_raises(ValueError, random.RandomState, [-1]) |
| 102 | assert_raises(ValueError, random.RandomState, [4294967296]) |
| 103 | assert_raises(ValueError, random.RandomState, [1, 2, 4294967296]) |
| 104 | assert_raises(ValueError, random.RandomState, [1, -2, 4294967296]) |
| 105 | |
| 106 | def test_invalid_array_shape(self): |
| 107 | # gh-9832 |
nothing calls this directly
no test coverage detected