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 2022/12/29 03:59:33 UTC

[iotdb] branch fix_python_status_code updated: fix_python_status_code

This is an automated email from the ASF dual-hosted git repository.

haonan pushed a commit to branch fix_python_status_code
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/fix_python_status_code by this push:
     new 23581b733b fix_python_status_code
23581b733b is described below

commit 23581b733bf32e7ac0aa693faa96224159f63453
Author: HTHou <hh...@outlook.com>
AuthorDate: Thu Dec 29 11:59:15 2022 +0800

    fix_python_status_code
---
 client-py/iotdb/dbapi/tests/test_connection.py   | 1 +
 client-py/iotdb/dbapi/tests/test_cursor.py       | 1 +
 client-py/iotdb/sqlalchemy/tests/test_dialect.py | 1 +
 client-py/iotdb/utils/IoTDBRpcDataSet.py         | 2 +-
 client-py/tests/test_aligned_timeseries.py       | 1 +
 client-py/tests/test_delete_data.py              | 1 +
 client-py/tests/test_one_device.py               | 1 +
 client-py/tests/test_session.py                  | 1 +
 8 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/client-py/iotdb/dbapi/tests/test_connection.py b/client-py/iotdb/dbapi/tests/test_connection.py
index cb1f6c1e65..d0d878ce2b 100644
--- a/client-py/iotdb/dbapi/tests/test_connection.py
+++ b/client-py/iotdb/dbapi/tests/test_connection.py
@@ -34,6 +34,7 @@ def print_message(message):
     print("*********")
     print(message)
     print("*********")
+    assert False
 
 
 def test_connection():
diff --git a/client-py/iotdb/dbapi/tests/test_cursor.py b/client-py/iotdb/dbapi/tests/test_cursor.py
index b0ece9d0e6..4737aa95ea 100644
--- a/client-py/iotdb/dbapi/tests/test_cursor.py
+++ b/client-py/iotdb/dbapi/tests/test_cursor.py
@@ -35,6 +35,7 @@ def print_message(message):
     print("*********")
     print(message)
     print("*********")
+    assert False
 
 
 def test_cursor():
diff --git a/client-py/iotdb/sqlalchemy/tests/test_dialect.py b/client-py/iotdb/sqlalchemy/tests/test_dialect.py
index 20615cc3e8..366bf4913d 100644
--- a/client-py/iotdb/sqlalchemy/tests/test_dialect.py
+++ b/client-py/iotdb/sqlalchemy/tests/test_dialect.py
@@ -38,6 +38,7 @@ def print_message(message):
     print("*********")
     print(message)
     print("*********")
+    assert False
 
 
 def test_dialect():
diff --git a/client-py/iotdb/utils/IoTDBRpcDataSet.py b/client-py/iotdb/utils/IoTDBRpcDataSet.py
index 38b6cc7eb1..e9dfa7bfe6 100644
--- a/client-py/iotdb/utils/IoTDBRpcDataSet.py
+++ b/client-py/iotdb/utils/IoTDBRpcDataSet.py
@@ -252,7 +252,7 @@ class IoTDBRpcDataSet(object):
 
                     bitmap_buffer = self.__query_data_set.bitmapList[location]
                     bitmap_str = self._to_bitstring(bitmap_buffer)
-                    bit_mask = (np.frombuffer(bitmap_buffer, 'u1') - ord('0')).astype(bool)
+                    bit_mask = (np.fromstring(bitmap_str, 'u1') - ord('0')).astype(bool)
                     if len(bit_mask) != total_length:
                         bit_mask = bit_mask[:total_length]
                     tmp_array[bit_mask] = data_array
diff --git a/client-py/tests/test_aligned_timeseries.py b/client-py/tests/test_aligned_timeseries.py
index 6e6c6ee23b..e0236d7f42 100644
--- a/client-py/tests/test_aligned_timeseries.py
+++ b/client-py/tests/test_aligned_timeseries.py
@@ -38,6 +38,7 @@ def print_message(message):
     print("*********")
     print(message)
     print("*********")
+    assert False
 
 
 def test_aligned_timeseries():
diff --git a/client-py/tests/test_delete_data.py b/client-py/tests/test_delete_data.py
index a73aa73fc6..031e8ef6e6 100644
--- a/client-py/tests/test_delete_data.py
+++ b/client-py/tests/test_delete_data.py
@@ -37,6 +37,7 @@ def print_message(message):
     print("*********")
     print(message)
     print("*********")
+    assert False
 
 
 def test_delete_date():
diff --git a/client-py/tests/test_one_device.py b/client-py/tests/test_one_device.py
index e2fad149fa..ce4c02b012 100644
--- a/client-py/tests/test_one_device.py
+++ b/client-py/tests/test_one_device.py
@@ -37,6 +37,7 @@ def print_message(message):
     print("*********")
     print(message)
     print("*********")
+    assert False
 
 
 def test_one_device():
diff --git a/client-py/tests/test_session.py b/client-py/tests/test_session.py
index 5f35e2a693..99e18ac3cd 100644
--- a/client-py/tests/test_session.py
+++ b/client-py/tests/test_session.py
@@ -42,6 +42,7 @@ def print_message(message):
     print("*********")
     print(message)
     print("*********")
+    assert False
 
 
 def test_session():