Skip to content

Commit c94b316

Browse files
authored
Merge pull request #1 from Pitastic/rebase_543
Rebase 543
2 parents b331328 + db8a766 commit c94b316

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Diff for: tests/test_WriteApiDataFrame.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ def test_write_num_py_floats(self):
327327
from influxdb_client.extras import pd, np
328328
now = pd.Timestamp('2020-04-05 00:00+00:00')
329329

330-
float_types = [np.float, np.float16, np.float32, np.float64]
330+
float_types = [np.float16, np.float32, np.float64]
331331
if hasattr(np, 'float128'):
332332
float_types.append(np.float128)
333333
for np_float_type in float_types:

Diff for: tests/test_point.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,6 @@ def test_numpy_types(self):
399399

400400
point = Point.measurement("h2o") \
401401
.tag("location", "europe") \
402-
.field("np.float1", np.float(1.123)) \
403402
.field("np.float2", np.float16(2.123)) \
404403
.field("np.float3", np.float32(3.123)) \
405404
.field("np.float4", np.float64(4.123)) \
@@ -413,7 +412,7 @@ def test_numpy_types(self):
413412
.field("np.uint4", np.uint64(8))
414413

415414
self.assertEqual(
416-
"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",
415+
"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",
417416
point.to_line_protocol())
418417

419418
def test_from_dictionary_custom_measurement(self):

0 commit comments

Comments
 (0)