Skip to content

Commit e238ff3

Browse files
committed
Filter more warnings
1 parent 0ba013f commit e238ff3

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

tests/test_store/test_wrapper.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ async def set(self, key: str, value: Buffer) -> None:
9797
assert await store_wrapped.get(key, buffer_prototype) == value
9898

9999

100+
@pytest.mark.filterwarnings("ignore:Unclosed client session:ResourceWarning")
100101
@pytest.mark.parametrize("store", ["local", "memory", "zip"], indirect=True)
101102
async def test_wrapped_get(store: Store, capsys: pytest.CaptureFixture[str]) -> None:
102103
# define a class that prints when it sets

tests/test_sync.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ def test_sync_raises_if_loop_is_closed() -> None:
9090
foo.assert_not_awaited()
9191

9292

93+
@pytest.mark.filterwarnings("ignore:Unclosed client session:ResourceWarning")
9394
@pytest.mark.filterwarnings("ignore:coroutine.*was never awaited")
9495
def test_sync_raises_if_calling_sync_from_within_a_running_loop(
9596
sync_loop: asyncio.AbstractEventLoop | None,

0 commit comments

Comments
 (0)