We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19c5838 commit 622e6cfCopy full SHA for 622e6cf
tests/conftest.py
@@ -9,6 +9,20 @@
9
10
cuenca.configure(sandbox=True)
11
12
+# Temporary patch for the VCRHTTPResponse object to avoid
13
+# AttributeError: 'VCRHTTPResponse' object has no attribute 'version_string'
14
+# Occurs with urllib3>=2.3.0 and is being addressed in the following PR:
15
+# https://github.com/kevin1024/vcrpy/pull/889
16
+
17
18
+@pytest.fixture(autouse=True)
19
+def patch_VCRHTTPResponse_version_string():
20
+ from vcr.stubs import VCRHTTPResponse # type: ignore
21
22
+ if not hasattr(VCRHTTPResponse, 'version_string'):
23
+ VCRHTTPResponse.version_string = None
24
+ yield
25
26
27
@pytest.fixture(scope='module')
28
def vcr_config():
0 commit comments