| 814 | assert_equal(test, control) |
| 815 | |
| 816 | def test_join(self): |
| 817 | a, b = self.a, self.b |
| 818 | |
| 819 | # Fixme, this test is broken |
| 820 | #test = join_by(('a', 'b'), a, b) |
| 821 | #control = np.array([(5, 55, 105, 100), (6, 56, 106, 101), |
| 822 | # (7, 57, 107, 102), (8, 58, 108, 103), |
| 823 | # (9, 59, 109, 104)], |
| 824 | # dtype=[('a', int), ('b', int), |
| 825 | # ('c', int), ('d', int)]) |
| 826 | #assert_equal(test, control) |
| 827 | |
| 828 | # Hack to avoid pyflakes unused variable warnings |
| 829 | join_by(('a', 'b'), a, b) |
| 830 | np.array([(5, 55, 105, 100), (6, 56, 106, 101), |
| 831 | (7, 57, 107, 102), (8, 58, 108, 103), |
| 832 | (9, 59, 109, 104)], |
| 833 | dtype=[('a', int), ('b', int), |
| 834 | ('c', int), ('d', int)]) |
| 835 | |
| 836 | def test_join_subdtype(self): |
| 837 | # tests the bug in https://stackoverflow.com/q/44769632/102441 |