Skip to content

Commit 7306f8e

Browse files
committed
3.6 compat
1 parent 946dc84 commit 7306f8e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/test_transport.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,15 @@
1010
from unittest import mock
1111

1212
import brotli
13-
import httpcore
1413
import pytest
1514
from pytest_localserver.http import WSGIServer
1615
from werkzeug.wrappers import Request, Response
1716

17+
try:
18+
import httpcore
19+
except (ImportError, ModuleNotFoundError):
20+
httpcore = None
21+
1822
try:
1923
import gevent
2024
except ImportError:

0 commit comments

Comments
 (0)