summaryrefslogtreecommitdiff
path: root/numpy/random/tests/test_regression.py
diff options
context:
space:
mode:
authormattip <matti.picus@gmail.com>2019-10-31 08:28:30 +0200
committermattip <matti.picus@gmail.com>2019-10-31 08:28:30 +0200
commitfa2aa53b89765f2555adf76f0009b4c29a39099e (patch)
treed2b444c4fe532c972d8de1f437df8759f2832761 /numpy/random/tests/test_regression.py
parent61bd4c2ed7d6abc1e489e0fba66ded4a7f3e2d42 (diff)
downloadnumpy-fa2aa53b89765f2555adf76f0009b4c29a39099e.tar.gz
MAINT: revert change to assert_array_equal, adjust tests
Diffstat (limited to 'numpy/random/tests/test_regression.py')
-rw-r--r--numpy/random/tests/test_regression.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/numpy/random/tests/test_regression.py b/numpy/random/tests/test_regression.py
index c0a03cd1c..3cc289a80 100644
--- a/numpy/random/tests/test_regression.py
+++ b/numpy/random/tests/test_regression.py
@@ -66,7 +66,8 @@ class TestRegression(object):
np.random.seed(12345)
shuffled = list(t)
random.shuffle(shuffled)
- assert_array_equal(shuffled, [t[0], t[3], t[1], t[2]])
+ expected = np.array([t[0], t[3], t[1], t[2]], dtype=object)
+ assert_array_equal(np.array(shuffled, dtype=object), expected)
def test_call_within_randomstate(self):
# Check that custom RandomState does not call into global state