diff --git a/tests/test_WriteApiDataFrame.py b/tests/test_WriteApiDataFrame.py index 71132b88..3675519a 100644 --- a/tests/test_WriteApiDataFrame.py +++ b/tests/test_WriteApiDataFrame.py @@ -327,7 +327,7 @@ def test_write_num_py_floats(self): from influxdb_client.extras import pd, np now = pd.Timestamp('2020-04-05 00:00+00:00') - float_types = [np.float, np.float16, np.float32, np.float64] + float_types = [np.float16, np.float32, np.float64] if hasattr(np, 'float128'): float_types.append(np.float128) for np_float_type in float_types: diff --git a/tests/test_point.py b/tests/test_point.py index cee602db..992ac354 100644 --- a/tests/test_point.py +++ b/tests/test_point.py @@ -399,7 +399,6 @@ def test_numpy_types(self): point = Point.measurement("h2o") \ .tag("location", "europe") \ - .field("np.float1", np.float(1.123)) \ .field("np.float2", np.float16(2.123)) \ .field("np.float3", np.float32(3.123)) \ .field("np.float4", np.float64(4.123)) \ @@ -413,7 +412,7 @@ def test_numpy_types(self): .field("np.uint4", np.uint64(8)) self.assertEqual( - "h2o,location=europe np.float1=1.123,np.float2=2.123,np.float3=3.123,np.float4=4.123,np.int1=1i,np.int2=2i,np.int3=3i,np.int4=4i,np.uint1=5i,np.uint2=6i,np.uint3=7i,np.uint4=8i", + "h2o,location=europe np.float2=2.123,np.float3=3.123,np.float4=4.123,np.int1=1i,np.int2=2i,np.int3=3i,np.int4=4i,np.uint1=5i,np.uint2=6i,np.uint3=7i,np.uint4=8i", point.to_line_protocol()) def test_from_dictionary_custom_measurement(self):