Skip to content

Commit

Permalink
Fix for compatibility with pyuvdata v3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bhazelton committed Jun 21, 2024
1 parent d23f81a commit 97f3ef3
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions hera_mc/tests/test_correlator.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,17 @@
import hashlib
import os
import re
import warnings
from math import floor

import numpy as np
import pytest

with warnings.catch_warnings():
# This filter can be removed when pyuvdata (and maybe other imported packages?)
# are updated to use importlib.metadata rather than pkg_resources
warnings.filterwarnings("ignore", "Implementing implicit namespace packages")
import pyuvdata.tests as uvtest
try:
from pyuvdata.testing import check_warnings
except ImportError:
# this can be removed once we require pyuvdata >= v3.0
from pyuvdata.tests import check_warnings

import yaml
from astropy.time import Time, TimeDelta

Expand Down Expand Up @@ -2327,7 +2327,7 @@ def test_get_snap_feng_init_status_from_redis(snap_feng_init_status, key, value)
exp_warning = None
warn_msg = ""

with uvtest.check_warnings(exp_warning, match=warn_msg):
with check_warnings(exp_warning, match=warn_msg):
log_time, snap_state = corr._get_snap_feng_init_status_from_redis(
snap_config_dict=input_dict
)
Expand Down

0 comments on commit 97f3ef3

Please sign in to comment.