()
| 150 | |
| 151 | @pytest.mark.skipif("not np") |
| 152 | def test_tokenize_numpy_scalar(): |
| 153 | assert check_tokenize(np.array(1.0, dtype="f8")) == check_tokenize( |
| 154 | np.array(1.0, dtype="f8") |
| 155 | ) |
| 156 | assert check_tokenize( |
| 157 | np.array([(1, 2)], dtype=[("a", "i4"), ("b", "i8")])[0] |
| 158 | ) == check_tokenize(np.array([(1, 2)], dtype=[("a", "i4"), ("b", "i8")])[0]) |
| 159 | |
| 160 | |
| 161 | @pytest.mark.skipif("not np") |
nothing calls this directly
no test coverage detected