Loading tests/template_tests/syntax_tests/test_numpy.py +8 −6 Original line number Diff line number Diff line Loading @@ -7,6 +7,7 @@ from ..utils import setup try: import numpy VisibleDeprecationWarning = numpy.VisibleDeprecationWarning except ImportError: numpy = False Loading @@ -14,11 +15,12 @@ except ImportError: @skipIf(numpy is False, "Numpy must be installed to run these tests.") class NumpyTests(SimpleTestCase): # Ignore numpy deprecation warnings (#23890) if numpy: warnings.filterwarnings( "ignore", "Using a non-integer number instead of an " "integer will result in an error in the future", DeprecationWarning numpy.VisibleDeprecationWarning ) @setup({'numpy-array-index01': '{{ var.1 }}'}) Loading Loading
tests/template_tests/syntax_tests/test_numpy.py +8 −6 Original line number Diff line number Diff line Loading @@ -7,6 +7,7 @@ from ..utils import setup try: import numpy VisibleDeprecationWarning = numpy.VisibleDeprecationWarning except ImportError: numpy = False Loading @@ -14,11 +15,12 @@ except ImportError: @skipIf(numpy is False, "Numpy must be installed to run these tests.") class NumpyTests(SimpleTestCase): # Ignore numpy deprecation warnings (#23890) if numpy: warnings.filterwarnings( "ignore", "Using a non-integer number instead of an " "integer will result in an error in the future", DeprecationWarning numpy.VisibleDeprecationWarning ) @setup({'numpy-array-index01': '{{ var.1 }}'}) Loading