(self, t1, t2)
| 92 | """ gh-15467 """ |
| 93 | |
| 94 | def _do_test(self, t1, t2): |
| 95 | x = t1(2) |
| 96 | arr = np.array(x, dtype=t2) |
| 97 | # type should be preserved exactly |
| 98 | if t2 is None: |
| 99 | assert arr.dtype.type is t1 |
| 100 | else: |
| 101 | assert arr.dtype.type is t2 |
| 102 | |
| 103 | @pytest.mark.parametrize('t1', int_types + uint_types) |
| 104 | @pytest.mark.parametrize('t2', int_types + uint_types + [None]) |
no outgoing calls
no test coverage detected