Skip to content

Commit 58dac7b

Browse files
committed
Fix write_points_batch test for python3.
1 parent 439f46c commit 58dac7b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/influxdb/client_test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,8 @@ def test_write_points_batch(self):
223223
"region": "us-west"},
224224
batch_size=2)
225225
self.assertEqual(m.call_count, 2)
226-
self.assertEqual(expected_last_body, m.last_request.body)
226+
self.assertEqual(expected_last_body,
227+
m.last_request.body.decode('utf-8'))
227228

228229
def test_write_points_udp(self):
229230
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)

0 commit comments

Comments
 (0)