- Notifications
You must be signed in to change notification settings - Fork35
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Replaceurllib3
withhttpx
#333
Conversation
2afbd5a
to52dc02a
CompareNice work. I'll look more closely a bit later but for the most part it seems reasonable. I'm uncertain on how best to untangle the wsgi-intercept aspect of the test failures. That will require a bit of thought. I notice that your editor, or some other part of your process, has reformatted a lot of code that didn't otherwise need to change. That makes it hard to distinguish your actual changes from "cosmetic" changes. If it is easy for you to do, could you update the PR so it is just the main changes? At some point we should probably If it's a pain, don't worry, we'll work through it. |
Yeah, my IDE has called Code updated. |
29ec0b6
to3c92f78
CompareLooks good. I'll see if I can untangle the intercept stuff in a branch below this one. Once we get that working we should be good to move this forward. Thanksvery much for pushing this along. It is great that gabbi continues to evolve and improve. |
I'm very very close. Looking good. More tomorrow. |
I've now got it down to everything working except for the tests inhttps://github.com/cdent/gabbi/blob/main/gabbi/runner.py . These used wsgi-intercept in a way that can't be replicated with httpx's transport so I'm switching it to use external processes. This is taking longer than expected because there's some complex stuff going on with stdin/stdout/stderr handling that has buffering issues. It's feeling easier to switch to managing subprocesses that untangling the buffers. Will be a few more days. |
Down to just two failing tests |
All passing. Will see what needs to be done to target this branch. |
It was eol October of 2024 and does not have supportfor removeprefix, which we now use.
As per our discussion (#332), here's my naïve attempt at simply replacing
urllib3
withhttpx
. I've run it with a number of real-world tests and it seems to work. However, the internal Gabbi tests are not all passing due to the WSGI-Intercept stuff.