From 366f9b8fc3dbc92baf7c5ba82a44b3fdb72e863d Mon Sep 17 00:00:00 2001 From: Mark Harfouche Date: Sun, 12 May 2019 13:03:22 -0400 Subject: Ensure that reduced is a 1D array --- numpy/testing/_private/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy/testing/_private/utils.py') diff --git a/numpy/testing/_private/utils.py b/numpy/testing/_private/utils.py index 75685f7fd..0e739ae00 100644 --- a/numpy/testing/_private/utils.py +++ b/numpy/testing/_private/utils.py @@ -784,7 +784,7 @@ def assert_array_compare(comparison, x, y, err_msg='', verbose=True, if isinstance(val, bool): cond = val - reduced = array(val) + reduced = array([val]) else: reduced = val.ravel() cond = reduced.all() -- cgit v1.2.1