You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ha...@apache.org on 2023/03/06 07:21:24 UTC
[iotdb] branch py_insert_bytes updated: add test
This is an automated email from the ASF dual-hosted git repository.
haonan pushed a commit to branch py_insert_bytes
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/py_insert_bytes by this push:
new f20cc8d80f add test
f20cc8d80f is described below
commit f20cc8d80f001f735ae95ca3032a1e6c38efcd19
Author: HTHou <hh...@outlook.com>
AuthorDate: Mon Mar 6 15:20:38 2023 +0800
add test
---
client-py/SessionExample.py | 2 +-
client-py/tests/test_session.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/client-py/SessionExample.py b/client-py/SessionExample.py
index e1cb1ef4c2..1323bf4ef1 100644
--- a/client-py/SessionExample.py
+++ b/client-py/SessionExample.py
@@ -166,7 +166,7 @@ measurements_list_ = [
]
values_list_ = [
[False, 22, 33, 4.4, 55.1, "test_records01"],
- [True, 77, 88, 1.25, 8.125, "test_records02"],
+ [True, 77, 88, 1.25, 8.125, bytes("test_records02", "utf-8")],
]
data_type_list_ = [data_types_, data_types_]
device_ids_ = ["root.sg_test_01.d_01", "root.sg_test_01.d_01"]
diff --git a/client-py/tests/test_session.py b/client-py/tests/test_session.py
index 99e18ac3cd..6fbddb9820 100644
--- a/client-py/tests/test_session.py
+++ b/client-py/tests/test_session.py
@@ -212,7 +212,7 @@ def test_session():
]
values_list_ = [
[False, 22, 33, 4.4, 55.1, "test_records01"],
- [True, 77, 88, 1.25, 8.125, "test_records02"],
+ [True, 77, 88, 1.25, 8.125, bytes("test_records02", "utf-8")],
]
data_type_list_ = [data_types_, data_types_]
device_ids_ = ["root.sg_test_01.d_01", "root.sg_test_01.d_02"]