Skip to content

Commit

Permalink
TST: change test comparison to work on older numpies, pandas-dev#13178
Browse files Browse the repository at this point in the history
  • Loading branch information
jreback committed May 17, 2016
1 parent 00e0f3e commit 2429ec5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pandas/tests/frame/test_convert_to.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,4 +179,4 @@ def test_to_records_with_unicode_index(self):
result = DataFrame([{u'a': u'x', u'b': 'y'}]).set_index(u'a')\
.to_records()
expected = np.rec.array([('x', 'y')], dtype=[('a', 'O'), ('b', 'O')])
tm.assert_numpy_array_equal(result, expected)
tm.assert_almost_equal(result, expected)

0 comments on commit 2429ec5

Please sign in to comment.