8000 MAINT: fix for dtype specification · numpy/numpy@70d6293 · GitHub
[go: up one dir, main page]

Skip to content

Commit 70d6293

Browse files
committed
MAINT: fix for dtype specification
1 parent 9c261e6 commit 70d6293

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

numpy/random/tests/test_generator_mt19937.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -700,8 +700,8 @@ def test_shuffle(self):
700700
.view(np.recarray)),
701701
# gh-4270
702702
lambda x: np.asarray([(i, i) for i in x],
703-
[("a", object, 1),
704-
("b", np.int32, 1)])]:
703+
[("a", object, (1,)),
704+
("b", np.int32, (1,))])]:
705705
random.bit_generator.seed(self.seed)
706706
alist = conv([1, 2, 3, 4, 5, 6, 7, 8, 9, 0])
707707
random.shuffle(alist)

numpy/random/tests/test_randomstate.py

Lines changed: 2 additions & 2 deletions
-
[("a", object, 1),
Original file line numberDiff line numberDiff line change
@@ -633,8 +633,8 @@ def test_shuffle(self):
633633
.view(np.recarray)),
634634
# gh-4270
635635
lambda x: np.asarray([(i, i) for i in x],
636
637-
("b", np.int32, 1)])]:
636+
[("a", object, (1,)),
637+
("b", np.int32, (1,))])]:
638638
random.seed(self.seed)
639639
alist = conv([1, 2, 3, 4, 5, 6, 7, 8, 9, 0])
640640
random.shuffle(alist)

0 commit comments

Comments
 (0)
0