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

'VCRHTTPConnection/...' has no attribute 'debuglevel'. Did you mean: 'set_debuglevel' #824

Open
thomas-maschler opened this issue Feb 20, 2024 · 0 comments

Comments

@thomas-maschler
Copy link

After updating to Python 3.12 some of my tests throw an error.
It seems that when using urlopen the connection is not correctly patched.

Below a code snippet which allows to replicate the error

from urllib.request import urlopen
import pytest

@pytest.mark.vcr
def test_vcr():
     url = "https://google.com"
     with urlopen(url) as f:
        pass
AttributeError: type object 'VCRHTTPConnection/...' has no attribute 'debuglevel'. Did you mean: 'set_debuglevel'?
@thomas-maschler thomas-maschler changed the title 'VCRHTTPConnection/...' has no attribute 'debuglevel'. Did you mean: 'set_debuglevel' after updating to Python 3.12 'VCRHTTPConnection/...' has no attribute 'debuglevel'. Did you mean: 'set_debuglevel' Feb 20, 2024
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

No branches or pull requests

1 participant