Skip to content

Commit

Permalink
Fixes imports (encode#550)
Browse files Browse the repository at this point in the history
  • Loading branch information
igor.stulikov authored and igor.stulikov committed Jan 29, 2023
1 parent e061990 commit 3c54880
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion httpcore/backends/mock.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@
import anyio

from httpcore import ReadTimeout
from .base import AsyncNetworkBackend, AsyncNetworkStream, NetworkBackend, NetworkStream

from .._exceptions import ReadError
from .base import AsyncNetworkBackend, AsyncNetworkStream, NetworkBackend, NetworkStream


class MockSSLObject:
Expand Down
4 changes: 2 additions & 2 deletions tests/_async/test_connection_pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
AsyncConnectionPool,
ConnectError,
PoolTimeout,
ReadTimeout,
ReadError,
ReadTimeout,
UnsupportedProtocol,
)
from httpcore.backends.base import AsyncNetworkStream
from httpcore.backends.mock import AsyncMockBackend, AsyncHangingStream
from httpcore.backends.mock import AsyncHangingStream, AsyncMockBackend


@pytest.mark.anyio
Expand Down
6 changes: 3 additions & 3 deletions tests/_sync/test_connection_pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@
import pytest

from httpcore import (
ConnectionPool,
ConnectError,
ConnectionPool,
PoolTimeout,
ReadTimeout,
ReadError,
ReadTimeout,
UnsupportedProtocol,
)
from httpcore.backends.base import NetworkStream
from httpcore.backends.mock import MockBackend, HangingStream
from httpcore.backends.mock import HangingStream, MockBackend
from tests import concurrency


Expand Down

0 comments on commit 3c54880

Please sign in to comment.