Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
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

Closed
scottwallacesh wants to merge9 commits intocdent:mainfromscottwallacesh:main

Conversation

scottwallacesh
Copy link
Contributor

As per our discussion (#332), here's my naïve attempt at simply replacingurllib3 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.

@scottwallaceshscottwallaceshforce-pushed themain branch 3 times, most recently from2afbd5a to52dc02aCompareMarch 14, 2025 14:52
@cdent
Copy link
Owner

Nice 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 probablyblack the entire codebase, but for a change like this it would be good to have a commit that is clearly only about the main change. Thanks.

If it's a pain, don't worry, we'll work through it.

@scottwallacesh
Copy link
ContributorAuthor

Yeah, my IDE has calledblack, etc.

Code updated.

@scottwallaceshscottwallaceshforce-pushed themain branch 2 times, most recently from29ec0b6 to3c92f78CompareMarch 14, 2025 15:28
@cdent
Copy link
Owner

Looks 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.

scottwallacesh reacted with thumbs up emoji

@cdent
Copy link
Owner

I'm very very close. Looking good. More tomorrow.

@cdent
Copy link
Owner

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.

@cdent
Copy link
Owner

Down to just two failing tests

@cdent
Copy link
Owner

All passing. Will see what needs to be done to target this branch.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@cdentcdentcdent left review comments

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@scottwallacesh@cdent

[8]ページ先頭

©2009-2025 Movatter.jp