Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vyasr committed Nov 7, 2024
1 parent 8fd9036 commit e6ec9f4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions python/rmm/rmm/tests/test_rmm.py
Original file line number Diff line number Diff line change
Expand Up @@ -1065,8 +1065,10 @@ def test_rmm_device_buffer_copy(cuda_ary, make_copy):
@pytest.mark.parametrize("level", logging_level)
def test_valid_logging_level(level):
# TODO: Clean up after we remove legacy logging.
default_level = getattr(
logging_level, "INFO", getattr(logging_level, "info")
# Note that we cannot specify the default value to getattr since that would
# always be run, but with `or` we can rely on short-circuiting.
default_level = getattr(logging_level, "INFO") or getattr(
logging_level, "info"
)
with warnings.catch_warnings():
warnings.filterwarnings(
Expand Down

0 comments on commit e6ec9f4

Please sign in to comment.