diff options
| author | Pauli Virtanen <pav@iki.fi> | 2009-03-09 20:49:55 +0000 |
|---|---|---|
| committer | Pauli Virtanen <pav@iki.fi> | 2009-03-09 20:49:55 +0000 |
| commit | 9d6b9b91b1a93be49d46b0f4afe78c7fa3a28e3f (patch) | |
| tree | cddc751dcfc518326da358dbe96545caae1af70a /numpy/testing/tests | |
| parent | de6264438e148882e58f5925f9176966216b940f (diff) | |
| download | numpy-9d6b9b91b1a93be49d46b0f4afe78c7fa3a28e3f.tar.gz | |
Fixed #745: make assert_array_almost_equal work with object arrays
Diffstat (limited to 'numpy/testing/tests')
| -rw-r--r-- | numpy/testing/tests/test_utils.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/numpy/testing/tests/test_utils.py b/numpy/testing/tests/test_utils.py index 275e34b2c..aabdc88a0 100644 --- a/numpy/testing/tests/test_utils.py +++ b/numpy/testing/tests/test_utils.py @@ -43,6 +43,11 @@ class _GenericTest(object): self._test_not_equal(a, b) + def test_objarray(self): + """Test object arrays.""" + a = np.array([1, 1], dtype=np.object) + self._test_equal(a, 1) + class TestEqual(_GenericTest, unittest.TestCase): def setUp(self): self._assert_func = assert_array_equal |
