(self)
| 1781 | zs.resize((10, 10)) |
| 1782 | |
| 1783 | def test_view(self): |
| 1784 | for dt in [bytes, np.void, str]: |
| 1785 | zs = self._zeros(10, dt) |
| 1786 | |
| 1787 | # viewing as itself should be allowed |
| 1788 | assert_equal(zs.view(dt).dtype, np.dtype(dt)) |
| 1789 | |
| 1790 | # viewing as any non-empty type gives an empty result |
| 1791 | assert_equal(zs.view((dt, 1)).shape, (0,)) |
| 1792 | |
| 1793 | def test_dumps(self): |
| 1794 | zs = self._zeros(10, int) |
nothing calls this directly
no test coverage detected