summaryrefslogtreecommitdiff
path: root/numpy/lib/tests/test_function_base.py
diff options
context:
space:
mode:
authormattip <matti.picus@gmail.com>2020-08-27 19:35:52 +0300
committermattip <matti.picus@gmail.com>2020-08-27 19:35:52 +0300
commit051198414ba1e2c3e56919013d4d4372c34aa994 (patch)
treea04bd92db2047c5f37b1db727d55c7b35cf9d8d4 /numpy/lib/tests/test_function_base.py
parent5bf6d68e7241498556ee1b28fc146c1c21fbb5e4 (diff)
downloadnumpy-051198414ba1e2c3e56919013d4d4372c34aa994.tar.gz
BUG: revert trim_zeros changes from gh-16911
Diffstat (limited to 'numpy/lib/tests/test_function_base.py')
-rw-r--r--numpy/lib/tests/test_function_base.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/numpy/lib/tests/test_function_base.py b/numpy/lib/tests/test_function_base.py
index 34a395ee4..41afccacc 100644
--- a/numpy/lib/tests/test_function_base.py
+++ b/numpy/lib/tests/test_function_base.py
@@ -1225,6 +1225,10 @@ class TestTrimZeros:
assert_array_equal(arr, res)
+ def test_list_to_list(self):
+ res = trim_zeros(self.a.tolist())
+ assert isinstance(res, list)
+
class TestExtins:
def test_basic(self):