Skip to content

Commit

Permalink
more robust _sym_tag_to_num_tag test
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasdiener committed Sep 18, 2023
1 parent 6918c63 commit e7f9239
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion test/test_trace_pair.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,13 @@ class DerivedDerivedCommTag(DerivedCommTag):
dct2 = DerivedCommTag()
ddct = DerivedDerivedCommTag()

assert _sym_tag_to_num_tag(ct) == 441551355
try:
from mpi4py import MPI
except ModuleNotFoundError:
pass
else:
tag_ub = MPI.COMM_WORLD.Get_attr(MPI.TAG_UB)
assert _sym_tag_to_num_tag(ct) == (1549868734841116283675 % tag_ub)

assert ct == ct2
assert ct != dct
Expand Down

0 comments on commit e7f9239

Please sign in to comment.