Skip to content
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

Specify encoding to fix EncodingWarning in 3.10 #618

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kkirsche
Copy link

@kkirsche kkirsche commented Nov 4, 2021

Fixes the EncodingWarning that exists in Python 3.10 by specifying the encoding as UTF-8 for both the read and write methods for the filesystem persister

.../site-packages/vcr/persisters/filesystem.py:24: EncodingWarning: 'encoding' argument not specified
  with open(cassette_path, "w") as f:

Fixes the `EncodingWarning` that exists in Python 3.10 by specifying the encoding as UTF-8 for both the read and write methods for the filesystem persister

```
.../site-packages/vcr/persisters/filesystem.py:24: EncodingWarning: 'encoding' argument not specified
  with open(cassette_path, "w") as f:
```
@kkirsche
Copy link
Author

Test failure seems to be unrelated to my code:

  E       vcr.errors.UnhandledHTTPRequestError: "The cassette ('/tmp/pytest-of-runner/pytest-6/test_redirect_DoAsyncRequest_0/test_redirect.yaml') doesn't contain the request (<Request (GET) https://mockbin.org/redirect/303/2>) asked for"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant