]> git.ipfire.org Git - thirdparty/httpx.git/commitdiff
fix cov
authorKar Petrosyan <kar.petrosyanpy@gmail.com>
Thu, 27 Feb 2025 17:01:59 +0000 (21:01 +0400)
committerKar Petrosyan <kar.petrosyanpy@gmail.com>
Thu, 27 Feb 2025 17:01:59 +0000 (21:01 +0400)
httpx/_client.py

index 2249231f8c3b912c731ff160344d3672e2f11738..bbeef7b522a71b84291ecbfa7572c13391d5814e 100644 (file)
@@ -1005,7 +1005,7 @@ class Client(BaseClient):
         transport = self._transport_for_url(request.url)
         start = time.perf_counter()
 
-        if not isinstance(request.stream, SyncByteStream):
+        if not isinstance(request.stream, SyncByteStream):  # pragma: no cover
             raise RuntimeError(
                 "Attempted to send an async request with a sync Client instance."
             )
@@ -1721,7 +1721,7 @@ class AsyncClient(BaseClient):
         transport = self._transport_for_url(request.url)
         start = time.perf_counter()
 
-        if not isinstance(request.stream, AsyncByteStream):
+        if not isinstance(request.stream, AsyncByteStream):  # pragma: no cover
             raise RuntimeError(
                 "Attempted to send an sync request with an AsyncClient instance."
             )