(self)
| 613 | assert_equal(test, control) |
| 614 | |
| 615 | def test_append_on_nested(self): |
| 616 | # Test append_fields on nested fields |
| 617 | w = self._create_arrays()[0] |
| 618 | test = append_fields(w, 'C', data=[10, 20, 30]) |
| 619 | control = ma.array([(1, (2, 3.0), 10), |
| 620 | (4, (5, 6.0), 20), |
| 621 | (-1, (-1, -1.), 30)], |
| 622 | mask=[( |
| 623 | 0, (0, 0), 0), (0, (0, 0), 0), (1, (1, 1), 0)], |
| 624 | dtype=[('a', int), |
| 625 | ('b', [('ba', float), ('bb', int)]), |
| 626 | ('C', int)],) |
| 627 | assert_equal(test, control) |
| 628 | |
| 629 | |
| 630 | class TestStackArrays: |
nothing calls this directly
no test coverage detected