-
-
Notifications
You must be signed in to change notification settings - Fork 32k
Fix an example in the explanation of mock autospeccing #133413
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
serhiy-storchaka
pushed a commit
that referenced
this issue
May 12, 2025
The has_data() method of http.request.Request was removed in version 3.4.
This was referenced May 12, 2025
serhiy-storchaka
pushed a commit
that referenced
this issue
May 12, 2025
serhiy-storchaka
pushed a commit
that referenced
this issue
May 12, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Documentation
The autospeccing section, in the reference for the unittest.mock module, includes an example with request.Request. The has_data method of Request is used, but it was removed in Python 3.4. A Pull Request is provided to use the header_items method instead, so the reader will see the expected result if they run the example in their PC.
Linked PRs
The text was updated successfully, but these errors were encountered: