Skip to content

Commit

Permalink
Merge pull request #794 from danielballan/pytest8
Browse files Browse the repository at this point in the history
Avoid deprecated usage for pytest 8.
  • Loading branch information
danielballan authored Jan 31, 2024
2 parents fb681ce + 92fbc08 commit 79077f1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions databroker/tests/test_broker.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
from .test_config import EXAMPLE
import doct
import copy
import warnings

import pytest
import six
Expand Down Expand Up @@ -860,13 +861,13 @@ def test_deprecated_doct():
ev.data
ev._name

with pytest.warns(None) as record:
with warnings.catch_warnings():
warnings.simplefilter("error")
ev['data']
ev.values()
ev._repr_html_()
with pytest.raises(AttributeError):
ev.nonexistent
assert not record # i.e. assert no warning


def test_ingest_array_data(db_empty, RE):
Expand Down

0 comments on commit 79077f1

Please sign in to comment.