(self)
| 235 | self.random_state.negative_binomial(0.5, 0.5) |
| 236 | |
| 237 | def test_get_state_warning(self): |
| 238 | rs = random.RandomState(PCG64()) |
| 239 | with suppress_warnings() as sup: |
| 240 | w = sup.record(RuntimeWarning) |
| 241 | state = rs.get_state() |
| 242 | assert_(len(w) == 1) |
| 243 | assert isinstance(state, dict) |
| 244 | assert state['bit_generator'] == 'PCG64' |
| 245 | |
| 246 | def test_invalid_legacy_state_setting(self): |
| 247 | state = self.random_state.get_state() |
nothing calls this directly
no test coverage detected