Skip to content

Commit

Permalink
Updating test constructor to deal with change in behavior with warnin…
Browse files Browse the repository at this point in the history
…gs about extra_keywords in UVBeam
  • Loading branch information
kartographer committed Jan 31, 2025
1 parent 2b36b9f commit 48acf3a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/test_uvsim.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,13 @@ def multi_beams():
):
beam5.to_healpix(nside=8)
beams.append(beam5)
except AssertionError:
# If we have an assert error, that means that import worked, but the warning
# was not raised due to the change in UVBeam warning behavior. Try again...
# TODO: Simplify this once pyuvdata v3.2 is required
with check_warnings(None):
beam5.to_healpix(nside=8)
beams.append(beam5)
except ImportError:
pass

Expand Down

0 comments on commit 48acf3a

Please sign in to comment.