diff options
author | saurabh <e.samehta@gmail.com> | 2016-11-01 02:28:33 +0100 |
---|---|---|
committer | saurabh <e.samehta@gmail.com> | 2016-11-01 02:58:36 +0100 |
commit | f685f1a83de2d8fc1e0f48167a204248b6656a63 (patch) | |
tree | 1d24d307936f03e558a4a661d7dd1560a07437cf /numpy/ma/tests/test_subclassing.py | |
parent | 6ae842001332f532e0c76815d49336ecc2b88dde (diff) | |
download | numpy-f685f1a83de2d8fc1e0f48167a204248b6656a63.tar.gz |
ENH: Deprecation warnings for `/` integer division when running python -3
When python is invoked with switch -3, it emits waring "classic int division"
for strict integer divisions. The same behavior is now implemented to numpy
with this fix
Diffstat (limited to 'numpy/ma/tests/test_subclassing.py')
-rw-r--r-- | numpy/ma/tests/test_subclassing.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/ma/tests/test_subclassing.py b/numpy/ma/tests/test_subclassing.py index 814ed5977..8198c9d35 100644 --- a/numpy/ma/tests/test_subclassing.py +++ b/numpy/ma/tests/test_subclassing.py @@ -176,7 +176,7 @@ class TestSubclassing(TestCase): # Test suite for masked subclasses of ndarray. def setUp(self): - x = np.arange(5) + x = np.arange(5, dtype='float') mx = mmatrix(x, mask=[0, 1, 0, 0, 0]) self.data = (x, mx) |