Skip to content

Commit aa5f397

Browse files
committed
test: add lax coverage pragmas to version-dependent cleanup code
1 parent d67a3e3 commit aa5f397

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/server/contrib/test_redis_event_store.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ async def redis_client():
3737
yield client
3838
finally:
3939
try:
40-
await client.aclose()
40+
await client.aclose() # pragma: lax no cover
4141
except AttributeError:
42-
await client.close()
42+
await client.close() # pragma: lax no cover
4343

4444

4545
@pytest.fixture

0 commit comments

Comments
 (0)