(shape, dtype=str)
| 1946 | class TestZeroSizeFlexible: |
| 1947 | @staticmethod |
| 1948 | def _zeros(shape, dtype=str): |
| 1949 | dtype = np.dtype(dtype) |
| 1950 | if dtype == np.void: |
| 1951 | return np.zeros(shape, dtype=(dtype, 0)) |
| 1952 | |
| 1953 | # not constructable directly |
| 1954 | dtype = np.dtype([('x', dtype, 0)]) |
| 1955 | return np.zeros(shape, dtype=dtype)['x'] |
| 1956 | |
| 1957 | def test_create(self): |
| 1958 | zs = self._zeros(10, bytes) |
no test coverage detected