Skip to content

Commit

Permalink
Fixed test warning on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
agronholm committed Jul 26, 2024
1 parent b74341d commit 5795f1f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_eventbrokers.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,9 @@ def test_asyncpg_broker_from_async_engine() -> None:


def test_psycopg_broker_from_async_engine() -> None:
pytest.importorskip("psycopg", reason="psycopg is not installed")
pytest.importorskip(
"psycopg", exc_type=ImportError, reason="psycopg is not installed"
)
from sqlalchemy import URL
from sqlalchemy.ext.asyncio import create_async_engine

Expand Down

0 comments on commit 5795f1f

Please sign in to comment.