Skip to content

Commit e384f25

Browse files
committed
Starlette is only for Python >= 3.6
1 parent aa01c83 commit e384f25

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

tests/test_starlette.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
import sys
2+
3+
import pytest
4+
5+
# Starlette only supports Python 3.6 or later
6+
if sys.version_info < (3, 6):
7+
raise pytest.skip(allow_module_level=True)
8+
19
from async_generator import yield_, async_generator
210
import pytest
311
from starlette.applications import Starlette

0 commit comments

Comments
 (0)