summaryrefslogtreecommitdiff
path: root/numpy/lib/tests/test_regression.py
diff options
context:
space:
mode:
authorSebastian Berg <sebastian@sipsolutions.net>2021-01-04 22:57:06 -0600
committerSebastian Berg <sebastian@sipsolutions.net>2021-01-25 13:20:57 -0600
commit38bda3ce9e6dc075548f378806488ad152c2e46c (patch)
treee4cf981d93b7ce5f58224a1fb7dfd8a1ebd13ce3 /numpy/lib/tests/test_regression.py
parent09416c2934a5f592970e1d97c0298924eed009f6 (diff)
downloadnumpy-38bda3ce9e6dc075548f378806488ad152c2e46c.tar.gz
DEP: Deprecate promotion of numbers and bool to string
Diffstat (limited to 'numpy/lib/tests/test_regression.py')
-rw-r--r--numpy/lib/tests/test_regression.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/numpy/lib/tests/test_regression.py b/numpy/lib/tests/test_regression.py
index 55df2a675..94fac7ef0 100644
--- a/numpy/lib/tests/test_regression.py
+++ b/numpy/lib/tests/test_regression.py
@@ -1,3 +1,5 @@
+import pytest
+
import os
import numpy as np
@@ -62,7 +64,8 @@ class TestRegression:
def test_mem_string_concat(self):
# Ticket #469
x = np.array([])
- np.append(x, 'asdasd\tasdasd')
+ with pytest.warns(FutureWarning):
+ np.append(x, 'asdasd\tasdasd')
def test_poly_div(self):
# Ticket #553