Skip to content

Commit

Permalink
test: Update for F90 datatype constructor returning the NULL handle
Browse files Browse the repository at this point in the history
  • Loading branch information
dalcinl committed Dec 15, 2023
1 parent a09fc75 commit c8735ed
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/test_datatype.py
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,8 @@ def check(self, oldtype, factory, *args):
newtype = factory(oldtype, *args)
else:
newtype = factory(*args)
if newtype == MPI.DATATYPE_NULL or newtype.Get_size() == 0:
raise NotImplementedError
except NotImplementedError:
self.skipTest('mpi-type-constructor')
self.check_contents(factory, newtype, oldtype)
Expand All @@ -524,6 +526,8 @@ def check(self, oldtype, factory, *args):
newtype0 = factory(oldtype, *args)
else:
newtype0 = factory(*args)
if newtype0 == MPI.DATATYPE_NULL or newtype0.Get_size() == 0:
raise NotImplementedError
except NotImplementedError:
self.skipTest('mpi-type-constructor')
newtype1 = loads(dumps(newtype0))
Expand Down

0 comments on commit c8735ed

Please sign in to comment.