summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
authorJay Bourque <jay.bourque@continuum.io>2013-04-03 14:53:21 -0500
committerJay Bourque <jay.bourque@continuum.io>2013-08-16 16:39:31 -0500
commit2e652047b98390c602f8a74aac73644d5a3c95ed (patch)
tree1bb56c57b823b06122d1c86173c8e5efe01963bd /numpy
parent4b3384973d4f84aa546a80e412d00231ba618fa1 (diff)
downloadnumpy-2e652047b98390c602f8a74aac73644d5a3c95ed.tar.gz
Another attempt at fixing DeprecationWarning
Diffstat (limited to 'numpy')
-rw-r--r--numpy/core/tests/test_ufunc.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/core/tests/test_ufunc.py b/numpy/core/tests/test_ufunc.py
index 7342bd70c..c81003882 100644
--- a/numpy/core/tests/test_ufunc.py
+++ b/numpy/core/tests/test_ufunc.py
@@ -968,9 +968,9 @@ class TestUfunc(TestCase):
assert_raises(IndexError, np.add.at, a, [], 1)
# Test mixed dtypes
- a = np.arange(10, dtype='i8')
+ a = np.arange(10, dtype='u8')
np.power.at(a, [1,2,3,2], 3.5)
- assert_equal(a, [0, 1, 4414, 46, 4, 5, 6, 7, 8, 9])
+ assert_equal(a, np.array([0, 1, 4414, 46, 4, 5, 6, 7, 8, 9], dtype='u8'))
# Test boolean indexing and boolean ufuncs
a = np.arange(10)