summaryrefslogtreecommitdiff
path: root/tests/template_tests/syntax_tests
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2014-12-06 11:27:15 -0500
committerTim Graham <timograham@gmail.com>2014-12-06 11:27:15 -0500
commit3bb52c50193bdfaa56134d055f067d1dfe302158 (patch)
tree1ddd9c8b72d4874ee5d6f06b01b85b0d3367678b /tests/template_tests/syntax_tests
parent5c68870169deec9eff392c53a8e74e3482f02ade (diff)
Refs #23890 -- Restored silencing of numpy DeprecationWarnings in template tests.
Diffstat (limited to 'tests/template_tests/syntax_tests')
-rw-r--r--tests/template_tests/syntax_tests/test_numpy.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/template_tests/syntax_tests/test_numpy.py b/tests/template_tests/syntax_tests/test_numpy.py
index fe60939586..8425d8ecc0 100644
--- a/tests/template_tests/syntax_tests/test_numpy.py
+++ b/tests/template_tests/syntax_tests/test_numpy.py
@@ -1,4 +1,5 @@
from unittest import skipIf
+import warnings
from django.conf import settings
from django.test import SimpleTestCase
@@ -13,6 +14,13 @@ except ImportError:
@skipIf(numpy is False, "Numpy must be installed to run these tests.")
class NumpyTests(SimpleTestCase):
+ # Ignore numpy deprecation warnings (#23890)
+ warnings.filterwarnings(
+ "ignore",
+ "Using a non-integer number instead of an "
+ "integer will result in an error in the future",
+ DeprecationWarning
+ )
@setup({'numpy-array-index01': '{{ var.1 }}'})
def test_numpy_array_index01(self):