diff options
author | Jay Bourque <jay.bourque@continuum.io> | 2012-07-17 16:03:41 -0500 |
---|---|---|
committer | Jay Bourque <jay.bourque@continuum.io> | 2012-07-17 16:05:10 -0500 |
commit | a03e8b4d286e91ef5823c059dcfb7a52ce420725 (patch) | |
tree | cf85c4c76a7591b874726bf6ed0d391dcf152c46 /numpy | |
parent | 2eb9610acab872538742ce7db5cbbae6cb23360e (diff) | |
download | numpy-a03e8b4d286e91ef5823c059dcfb7a52ce420725.tar.gz |
change DeprecationWarning to FutureWarning
Diffstat (limited to 'numpy')
-rw-r--r-- | numpy/core/tests/test_multiarray.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/core/tests/test_multiarray.py b/numpy/core/tests/test_multiarray.py index 0fc238a49..e3e24fae1 100644 --- a/numpy/core/tests/test_multiarray.py +++ b/numpy/core/tests/test_multiarray.py @@ -1983,13 +1983,13 @@ class TestRecord(TestCase): # All the different functions raise a warning, but not an error, and # 'a' is not modified: assert_equal(collect_warning_types(a[['f1','f2']].__setitem__, 0, (10,20)), - [DeprecationWarning]) + [FutureWarning]) assert_equal(a, b) # Views also warn subset = a[['f1','f2']] subset_view = subset.view() assert_equal(collect_warning_types(subset_view['f1'].__setitem__, 0, 10), - [DeprecationWarning]) + [FutureWarning]) # But the write goes through: assert_equal(subset['f1'][0], 10) # Only one warning per multiple field indexing, though (even if there are |