Skip to content

Commit 2dbafe5

Browse files
authored
Merge pull request #1438 from plone/fix-python-requests-link
Fix broken link to Python requests library docs Normally I do not merge in plone.restapi but this is a valuable fix of documentation of @stevepiercy
2 parents 90bf9dd + 5c46d11 commit 2dbafe5

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

news/1438.internal

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix broken link to Python requests library docs. [stevepiercy]

src/plone/restapi/testing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ def __init__(self, base_url, test=None):
290290
291291
Apparently, network sockets created by the `requests` library can remain open
292292
even after the full body of the response has been read, despite [the
293-
docs](https://docs.python-requests.org/en/latest/user/advanced/#body-content-workflow). In
293+
docs](https://requests.readthedocs.io/en/latest/user/advanced/#body-content-workflow). In
294294
particular, this results in `ResourceWarning: unclosed <socket.socket ...>` leak
295295
warnings when running the tests. If the `test` kwarg is passed, it will be used
296296
to register future cleanup calls to close this session and thus also the

0 commit comments

Comments
 (0)