Skip to content

Commit a4c6bf9

Browse files
committed
CI fixes
ci rerun
1 parent 0f0be8b commit a4c6bf9

File tree

2 files changed

+11
-12
lines changed

2 files changed

+11
-12
lines changed

examples/12_span_write.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import numpy as np
21
import openpmd_api as io
32

43

test/python/unittest/API/APITest.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -807,8 +807,8 @@ def makeDataRoundTrip(self, file_ending):
807807
if file_ending not in ["bp", "bp4", "bp5"]:
808808
dc256 = ms["clongdouble"][SCALAR].load_chunk(o, e)
809809

810-
self.assertTrue(dc64.dtype == 'complex64')
811-
self.assertTrue(dc128.dtype == 'complex128')
810+
self.assertEqual(dc64.dtype, 'complex64')
811+
self.assertEqual(dc128.dtype, 'complex128')
812812
if file_ending not in ["bp", "bp4", "bp5"]:
813813
self.assertTrue(
814814
dc256.dtype == 'clongdouble')
@@ -964,15 +964,15 @@ def makeEmptyRoundTrip(self, file_ending):
964964

965965
# test datatypes for fixed-sized types only
966966
if found_numpy:
967-
self.assertTrue(ms["int16"][SCALAR].dtype == "int16")
968-
self.assertTrue(ms["int32"][SCALAR].dtype == "int32")
969-
self.assertTrue(ms["int64"][SCALAR].dtype == "int64")
970-
self.assertTrue(ms["uint16"][SCALAR].dtype == "uint16")
971-
self.assertTrue(ms["uint32"][SCALAR].dtype == "uint32")
972-
self.assertTrue(ms["uint64"][SCALAR].dtype == "uint64")
973-
self.assertTrue(ms["single"][SCALAR].dtype == "single")
974-
self.assertTrue(
975-
ms["np_double"][SCALAR].dtype == "double")
967+
self.assertEqual(ms["int16"][SCALAR].dtype, "int16")
968+
self.assertEqual(ms["int32"][SCALAR].dtype, "int32")
969+
self.assertEqual(ms["int64"][SCALAR].dtype, "int64")
970+
self.assertEqual(ms["uint16"][SCALAR].dtype, "uint16")
971+
self.assertEqual(ms["uint32"][SCALAR].dtype, "uint32")
972+
self.assertEqual(ms["uint64"][SCALAR].dtype, "uint64")
973+
self.assertEqual(ms["single"][SCALAR].dtype, "single")
974+
self.assertEqual(
975+
ms["np_double"][SCALAR].dtype, "double")
976976

977977
def testEmptyRecords(self):
978978
backend_filesupport = {

0 commit comments

Comments
 (0)