Open pquentin opened 1 year ago
The urllib3 2.0 tests are fixed by https://github.com/urllib3/urllib3/pull/2998
Is the company issue in the toolbelt or in betamax?
What is the company issue sorry? If you mean https://github.com/urllib3/urllib3/issues/2999 it's a totally different issue
*compatibility
If rerecording the cassettes makes a difference it makes me think the compatibility problem is in Betamax fundamentally
Maybe it is. I don't know, I have to admit I stuck with the first thing that worked. But I did not have to change most responses, so this is definitely fishy. I would have to investigate more and understand how Betamax works.
patches from this pull are needed for tests to pass on master branch when using urllib3 2.0. I have a yocto setups and I can confirm the failures
==============================================================================================================
Failed test cases (sorted by testseries, ID)
==============================================================================================================
--------------------------------------------------------------------------------------------------------------
testseries | result_id : oeqa | runtime_meta-python-ptest-image-python3-requests-toolbelt_qemux86-64_20230713012809
ptestresult.python3-requests-toolbelt.tests/test_dump.py::TestDumpRealResponses::test_dump_all
ptestresult.python3-requests-toolbelt.tests/test_dump.py::TestDumpRealResponses::test_dump_response
ptestresult.python3-requests-toolbelt.tests/test_sessions.py::TestBasedSession::test_prepared_request_override_base
ptestresult.python3-requests-toolbelt.tests/test_sessions.py::TestBasedSession::test_prepared_request_with_base
ptestresult.python3-requests-toolbelt.tests/test_sessions.py::TestBasedSession::test_request_override_base
ptestresult.python3-requests-toolbelt.tests/test_sessions.py::TestBasedSession::test_request_with_base
--------------------------------------------------------------------------------------------------------------
without these patches.
Thanks for confirming! However I'm not sure the approach is correct and still works on 1.26.x. We would have to fix our CI to tell.
Somehow some cassette files were incompatible. I also tried adding urllib3 2.0 tests in CI, let's see how that goes.