diff options
| author | John Kirkham <kirkhamj@janelia.hhmi.org> | 2016-01-22 17:31:13 -0500 |
|---|---|---|
| committer | John Kirkham <kirkhamj@janelia.hhmi.org> | 2016-01-22 18:15:44 -0500 |
| commit | 43c6a89128347928c5fe26f67ba2a0a022f00822 (patch) | |
| tree | 66e843ac0d8bd4a3440391006fc2601b7eb46b04 /numpy/linalg/tests | |
| parent | bc4a17ed89004ed63558a3e7f0bd035580777aa7 (diff) | |
| download | numpy-43c6a89128347928c5fe26f67ba2a0a022f00822.tar.gz | |
BUG: Make sure that the `ord=0` case returns a float.
Diffstat (limited to 'numpy/linalg/tests')
| -rw-r--r-- | numpy/linalg/tests/test_linalg.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/numpy/linalg/tests/test_linalg.py b/numpy/linalg/tests/test_linalg.py index 5c6142b7b..60486d4ce 100644 --- a/numpy/linalg/tests/test_linalg.py +++ b/numpy/linalg/tests/test_linalg.py @@ -868,10 +868,7 @@ class _TestNorm(object): assert_almost_equal(an, 0.0) an = norm(at, 0) - # Trying to assert equality to `np.dtype(int).type` fails on - # 32-bit platforms as it still becomes `np.int64` instead of - # `np.int32`. So, this is our workaround. - assert_(an.dtype.type in [np.int32, np.int64]) + assert_(issubclass(an.dtype.type, np.floating)) assert_almost_equal(an, 2) an = norm(at, 1) |
