(self)
| 557 | assert_raises(ValueError, assign, a, np.arange(12).reshape(2, 2, 3)) |
| 558 | |
| 559 | def test_assignment_errors(self): |
| 560 | # Address issue #2276 |
| 561 | class C: |
| 562 | pass |
| 563 | a = np.zeros(1) |
| 564 | |
| 565 | def assign(v): |
| 566 | a[0] = v |
| 567 | |
| 568 | assert_raises((AttributeError, TypeError), assign, C()) |
| 569 | assert_raises(ValueError, assign, [1]) |
| 570 | |
| 571 | def test_unicode_assignment(self): |
| 572 | # gh-5049 |
nothing calls this directly
no test coverage detected