(self)
| 679 | assert array_like.function is self.MyArray.fromfile |
| 680 | |
| 681 | def test_exception_handling(self): |
| 682 | self.add_method('array', self.MyArray, enable_value_error=True) |
| 683 | |
| 684 | ref = self.MyArray.array() |
| 685 | |
| 686 | with assert_raises(TypeError): |
| 687 | # Raises the error about `value_error` being invalid first |
| 688 | np.array(1, value_error=True, like=ref) |
| 689 | |
| 690 | @pytest.mark.parametrize('function, args, kwargs', _array_tests) |
| 691 | def test_like_as_none(self, function, args, kwargs): |
nothing calls this directly
no test coverage detected