diff options
| author | Marten van Kerkwijk <mhvk@astro.utoronto.ca> | 2018-05-22 15:56:50 -0400 |
|---|---|---|
| committer | Marten van Kerkwijk <mhvk@astro.utoronto.ca> | 2018-05-29 13:57:33 -0400 |
| commit | 86f487cd9c634f778d7b6ce8184c367d9e423fd6 (patch) | |
| tree | a9dea39dbf7c978192c061ff63d684c6d9469a9f /numpy/matrixlib/tests/test_masked_matrix.py | |
| parent | 11e9d2aa469e6c5ed6fd6ccb29b139ea8e5e58b9 (diff) | |
| download | numpy-86f487cd9c634f778d7b6ce8184c367d9e423fd6.tar.gz | |
TST: Ignore PendingDeprecationWarning in matrixlib tests.
Diffstat (limited to 'numpy/matrixlib/tests/test_masked_matrix.py')
| -rw-r--r-- | numpy/matrixlib/tests/test_masked_matrix.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/numpy/matrixlib/tests/test_masked_matrix.py b/numpy/matrixlib/tests/test_masked_matrix.py index 0a0d985c4..adc2e5419 100644 --- a/numpy/matrixlib/tests/test_masked_matrix.py +++ b/numpy/matrixlib/tests/test_masked_matrix.py @@ -1,5 +1,13 @@ from __future__ import division, absolute_import, print_function +# As we are testing matrices, we ignore its PendingDeprecationWarnings +try: + import pytest + pytestmark = pytest.mark.filterwarnings( + 'ignore:the matrix subclass is not:PendingDeprecationWarning') +except ImportError: + pass + import pickle import numpy as np |
