Best way to assert for numpy.array equality?

后端 未结 6 1138
长情又很酷
长情又很酷 2020-12-13 16:37

I want to make some unit-tests for my app, and I need to compare two arrays. Since array.__eq__ returns a new array (so TestCase.assertEqual fails)

6条回答
提交回复
热议问题