summaryrefslogtreecommitdiff
path: root/numpy/lib/tests/test_regression.py
diff options
context:
space:
mode:
authorMatti Picus <matti.picus@gmail.com>2021-01-26 08:49:45 +0200
committerGitHub <noreply@github.com>2021-01-26 08:49:45 +0200
commitaf51d6615c37f43b6d842b72a4b02dc14e024f3e (patch)
tree76344e5ea87f8e0db649e2fc2ad163ce6f51588b /numpy/lib/tests/test_regression.py
parentc90cb814567b4f798e884b773fe96e42d8aa63de (diff)
parent38bda3ce9e6dc075548f378806488ad152c2e46c (diff)
downloadnumpy-af51d6615c37f43b6d842b72a4b02dc14e024f3e.tar.gz
Merge pull request #18116 from seberg/futurewarn-string-promotion
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