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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy