diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2015-04-03 11:30:35 -0600 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2015-04-03 11:30:35 -0600 |
commit | 71dea15af12ca296cb0f360f09bbedd7c5edfd15 (patch) | |
tree | 7ba1b362ef95b36f6f1b9f0148cf9f767da37755 /numpy/lib/tests | |
parent | 61a546d4d9fa2ade218162fb3b048681cc83190c (diff) | |
download | numpy-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.py | 2 |
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) |