oracle / oracle/oci-python-sdk
Testsuite fails with urllib3 >= 2.0.0 due to vcrpy incompatibility
Open
Nobody has claimed this yet.
SDK
- Dominant language
- Python
- Stars
- 474
- Forks
- 321
- Avg merge
- 23m
- Merged PRs (30d)
- 4
Description
When the system's version of urlib3 is 2.0.0 or higher, the testsuite of oci-python-sdk fails due an incompatibility of vcrpy with urlib3 >= 2.0.0:
[ 458s] + pytest-3.9 --ignore=_build.python39 --ignore=_build.python311 --ignore=_build.python310 -v tests/unit tests/integ -s
[ 459s] ImportError while loading conftest '/home/abuild/rpmbuild/BUILD/oci-python-sdk-2.96.0/tests/conftest.py'.
[ 460s] tests/conftest.py:9: in <module>
[ 460s] from tests.integ import util
[ 460s] tests/integ/util.py:13: in <module>
[ 460s] from .. import test_config_container
[ 460s] tests/test_config_container.py:13: in <module>
[ 460s] import vcr
[ 460s] /usr/lib/python3.9/site-packages/vcr/__init__.py:2: in <module>
[ 460s] from .config import VCR
[ 460s] /usr/lib/python3.9/site-packages/vcr/config.py:11: in <module>
[ 460s] from .cassette import Cassette
[ 460s] /usr/lib/python3.9/site-packages/vcr/cassette.py:12: in <module>
[ 460s] from .patch import CassettePatcherBuilder
[ 460s] /usr/lib/python3.9/site-packages/vcr/patch.py:41: in <module>
[ 460s] _VerifiedHTTPSConnection = cpool.VerifiedHTTPSConnection
[ 460s] E AttributeError: module 'urllib3.connectionpool' has no attribute 'VerifiedHTTPSConnection'
[ 460s] error: Bad exit status from /var/tmp/rpm-tmp.x8HlyJ (%check)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with tests/conftest.py, tests/integ/util.py, and tests/test_config_container.py to trace the vcr import failure, then run the pytest command shown in the issue with urllib3 2.0 or newer. Done means the test suite loads and runs successfully without the VerifiedHTTPSConnection error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- testing-qa
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100