Skip to content

Commit

Permalink
Fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
brownbaerchen committed Feb 24, 2025
1 parent 65fb17e commit 14032d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pySDC/tests/test_helpers/test_spectral_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -438,8 +438,8 @@ def test_transform(nx, ny, nz, bx, by, bz, axes, padding, useMPI=False, **kwargs
] * helper.ndim
u_pad = helper.itransform(trf, axes=axes, padding=_padding)
trf2 = helper.transform(u_pad, axes=axes, padding=_padding)
my_assert(np.allclose(trf2, trf))
my_assert(sum(u_pad.shape) > sum(u.shape)), f'{u_pad.shape}, {u.shape}'
my_assert(lambda: np.allclose(trf2, trf))
my_assert(lambda: sum(u_pad.shape) > sum(u.shape)), f'{u_pad.shape}, {u.shape}'


def run_MPI_test(num_procs, **kwargs):
Expand Down

0 comments on commit 14032d2

Please sign in to comment.