(self, dtype)
| 181 | np.float16, np.float32, np.float64, |
| 182 | ]) |
| 183 | def test_dunder_round(self, dtype): |
| 184 | s = dtype(1) |
| 185 | assert_(isinstance(round(s), int)) |
| 186 | assert_(isinstance(round(s, None), int)) |
| 187 | assert_(isinstance(round(s, ndigits=None), int)) |
| 188 | assert_equal(round(s), 1) |
| 189 | assert_equal(round(s, None), 1) |
| 190 | assert_equal(round(s, ndigits=None), 1) |
| 191 | |
| 192 | @pytest.mark.parametrize('val, ndigits', [ |
| 193 | pytest.param(2**31 - 1, -1, |
nothing calls this directly
no test coverage detected