diff options
| author | Charles Harris <charlesr.harris@gmail.com> | 2018-12-04 06:48:26 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-12-04 06:48:26 -0800 |
| commit | b35892ad072ca00ba60fef225ec38a22c711bdfa (patch) | |
| tree | 2e9c19ca18c9fa464774b2aba84025ac5a07bc6b /numpy/core/tests | |
| parent | 55bbfafed71bbe83e38bbf4050d1a1d0b54fde8e (diff) | |
| parent | 0f59087af94b4fba61138334bf8f9c375bf1ae55 (diff) | |
| download | numpy-b35892ad072ca00ba60fef225ec38a22c711bdfa.tar.gz | |
Merge pull request #12353 from mattip/check-threshold
BUG: test, fix for threshold='nan'
Diffstat (limited to 'numpy/core/tests')
| -rw-r--r-- | numpy/core/tests/test_arrayprint.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/numpy/core/tests/test_arrayprint.py b/numpy/core/tests/test_arrayprint.py index 6522c6e8a..7a858d2e2 100644 --- a/numpy/core/tests/test_arrayprint.py +++ b/numpy/core/tests/test_arrayprint.py @@ -842,6 +842,10 @@ class TestPrintOptions(object): [[ 0.]]]])""") ) + def test_bad_args(self): + assert_raises(ValueError, np.set_printoptions, threshold='nan') + assert_raises(ValueError, np.set_printoptions, threshold=u'1') + assert_raises(ValueError, np.set_printoptions, threshold=b'1') def test_unicode_object_array(): import sys |
