Skip to content

Commit 17915fb

Browse files
committed
fix Sanic test
1 parent cf3bbf0 commit 17915fb

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tests/test_sanic.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33

44
from async_generator import yield_, async_generator
55
import pytest
6+
7+
# Sanic 19.6 dropped Python 3.5 support
8+
if sys.version_info < (3, 6):
9+
raise pytest.skip(allow_module_level=True)
10+
611
import sanic
712
from sanic.response import text, json
813

@@ -12,8 +17,6 @@
1217
from .models import DB_ARGS, PG_URL
1318

1419
_MAX_INACTIVE_CONNECTION_LIFETIME = 59.0
15-
pytestmark = pytest.mark.skipif(sys.version_info < (3, 6),
16-
reason="Sanic 19.6 dropped Python 3.5 support")
1720

1821

1922
def teardown_module():

0 commit comments

Comments
 (0)