diff --git a/tests/core/test_connector_sql.py b/tests/core/test_connector_sql.py index ea98d75be..a45b59373 100644 --- a/tests/core/test_connector_sql.py +++ b/tests/core/test_connector_sql.py @@ -189,9 +189,7 @@ def test_connect_calls_connect(self, connector): def test_connect_raises_on_operational_failure(self, connector): with ( - pytest.raises( - sa.exc.OperationalError, - ) as _, + pytest.raises(sa.exc.OperationalError) as _, connector._connect() as conn, ): conn.execute(sa.text("SELECT * FROM fake_table"))