Skip to content

Commit bd0e02f

Browse files
committed
Reword a section
1 parent 38d4328 commit bd0e02f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

http_client.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2293,11 +2293,11 @@ cannot be resolved or the host was unreachable. The
22932293

22942294
In order to test errors that occur while a response is being streamed
22952295
(that is, after the headers have already been received), provide the
2296-
response as one of the iterable ``body`` parts from
2297-
your ``MockResponse`` instance. You can either use an exception
2298-
directly, or yield the exception from a callback. For exceptions of
2299-
this kind, ``getStatusCode()`` may indicate a success (200), but
2300-
accessing ``getContent()`` fails.
2296+
exception to ``MockResponse`` as part of the ``body``
2297+
parameter. You can either use an exception directly, or yield the
2298+
exception from a callback. For exceptions of this kind,
2299+
``getStatusCode()`` may indicate a success (200), but accessing
2300+
``getContent()`` fails.
23012301

23022302
The following example code illustrates all three options.
23032303

0 commit comments

Comments
 (0)