Skip to content

Commit 4b97938

Browse files
author
mongkok
committed
Fixed FastAPI dependencies with yield require Python 3.7 or above
1 parent f7c4fce commit 4b97938

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

tests/mark.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ def override_panels(panels: t.List[str]) -> MarkDecorator:
1414

1515

1616
skip_py37: MarkDecorator = pytest.mark.skipif(sys.version_info < (3, 8), reason="?")
17+
skip_py36: MarkDecorator = pytest.mark.skipif(sys.version_info < (3, 7), reason="?")

tests/panels/sqlalchemy/test_sqlalchemy.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
from fastapi import status
22

3-
from ...mark import override_panels
3+
from ...mark import override_panels, skip_py36
44
from ...testclient import TestClient
55

66

7+
@skip_py36
78
@override_panels(["debug_toolbar.panels.sqlalchemy.SQLAlchemyPanel"])
89
def test_sqlalchemy(client: TestClient) -> None:
910
store_id = client.get_store_id("/sql")

0 commit comments

Comments
 (0)