Skip to content

Commit

Permalink
Filter more warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
dstansby committed Feb 18, 2025
1 parent 0ba013f commit e238ff3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/test_store/test_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ async def set(self, key: str, value: Buffer) -> None:
assert await store_wrapped.get(key, buffer_prototype) == value


@pytest.mark.filterwarnings("ignore:Unclosed client session:ResourceWarning")
@pytest.mark.parametrize("store", ["local", "memory", "zip"], indirect=True)
async def test_wrapped_get(store: Store, capsys: pytest.CaptureFixture[str]) -> None:
# define a class that prints when it sets
Expand Down
1 change: 1 addition & 0 deletions tests/test_sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ def test_sync_raises_if_loop_is_closed() -> None:
foo.assert_not_awaited()


@pytest.mark.filterwarnings("ignore:Unclosed client session:ResourceWarning")
@pytest.mark.filterwarnings("ignore:coroutine.*was never awaited")
def test_sync_raises_if_calling_sync_from_within_a_running_loop(
sync_loop: asyncio.AbstractEventLoop | None,
Expand Down

0 comments on commit e238ff3

Please sign in to comment.