(self, dtype)
| 237 | np.float16, np.float32, np.float64, |
| 238 | ]) |
| 239 | def test_dunder_round(self, dtype): |
| 240 | s = dtype(1) |
| 241 | assert_(isinstance(round(s), int)) |
| 242 | assert_(isinstance(round(s, None), int)) |
| 243 | assert_(isinstance(round(s, ndigits=None), int)) |
| 244 | assert_equal(round(s), 1) |
| 245 | assert_equal(round(s, None), 1) |
| 246 | assert_equal(round(s, ndigits=None), 1) |
| 247 | |
| 248 | @pytest.mark.parametrize('val, ndigits', [ |
| 249 | pytest.param(2**31 - 1, -1, |
nothing calls this directly
no test coverage detected