Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
nakagami committed Aug 23, 2024
1 parent bc2799d commit b8b6a86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cymysql/tests/test_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def test_vec(self):
c.execute("insert into test_vec(vec1) values (%s)", [np.array([2, 3, 5, 7])])
c.execute("select * from test_vec")
r = c.fetchone()
self.assertEqual(str(r[1]), str(np.array([2, 3, 5, 7], dtype=np.float32)))
self.assertEqual(r[1].all(), np.array([2, 3, 5, 7], dtype=np.float32).all())
finally:
c.execute("drop table test_vec")

Expand Down

0 comments on commit b8b6a86

Please sign in to comment.