why does unittest not treat a numpy array to as a sequence?

后端 未结 0 1324
夕颜
夕颜 2020-12-22 23:26

The following test fails:

import unittest
unittest.TestCase().assertSequenceEqual([1,2,3],np.array([1.,2.,3.]))

I expected it to succeed. I u

相关标签:
回答
  • 消灭零回复
提交回复
热议问题