summaryrefslogtreecommitdiff
path: root/numpy/lib/tests
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2015-04-03 11:30:35 -0600
committerCharles Harris <charlesr.harris@gmail.com>2015-04-03 11:30:35 -0600
commit71dea15af12ca296cb0f360f09bbedd7c5edfd15 (patch)
tree7ba1b362ef95b36f6f1b9f0148cf9f767da37755 /numpy/lib/tests
parent61a546d4d9fa2ade218162fb3b048681cc83190c (diff)
downloadnumpy-71dea15af12ca296cb0f360f09bbedd7c5edfd15.tar.gz
TST: Test nan_to_num with integer list input.
Diffstat (limited to 'numpy/lib/tests')
-rw-r--r--numpy/lib/tests/test_type_check.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/numpy/lib/tests/test_type_check.py b/numpy/lib/tests/test_type_check.py
index 3931f95e5..7afd1206c 100644
--- a/numpy/lib/tests/test_type_check.py
+++ b/numpy/lib/tests/test_type_check.py
@@ -277,6 +277,8 @@ class TestNanToNum(TestCase):
def test_integer(self):
vals = nan_to_num(1)
assert_all(vals == 1)
+ vals = nan_to_num([1])
+ assert_array_equal(vals, np.array([1], np.int))
def test_complex_good(self):
vals = nan_to_num(1+1j)