-
Notifications
You must be signed in to change notification settings - Fork 10.6k
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
enable test_proxy_connect in Python 3 #2545
Comments
Hey, i am new to open source, this is the first issue i would work on (hopefully). Is this a beginner level issue? If so, i would like to start working on it. Kindly guide me. |
Me too, I am new and want to contribute this open source.. Could you recommend some beginner level issue? |
Hey @ShivramIITG and @kai3n! Yes, I think this is a good isses for a beginner. It is not a super-easy issue, but it is clear what the end result should be. I think to work on it one have to
Maybe there is a way to use only a new mitmproxy version, I haven't checked that - it'd be ideal. |
@kmike I ran the whole test for both python2 and python3. But I, currently, am using a proxy network.Does it affect the test? |
Doing And seeing this Move to Python 3, I believe it hasn't been moved to python 3. EDIT: Doing the above for python2 gave |
ping @kmike |
Hey @Parth-Vader, The ticket you linked to says that mitmproxy is moved to Python 3 (but Python 2 support is dropped). Sowe need a new version of mitmproxy in Python 3 environments and old version of mitmproxy in Python 2 environments, |
@kmike Alright, I will take it. |
@Parth-Vader thanks! Yes, creating a new branch and sending a PR is the way to go. |
Ping @kmike Progress till now :-
The tests fail since Now, I'll try to make the tests pass. |
Related: mitmproxy/mitmproxy#2061 |
I rewrote the test to use the modern mitmproxy in a thread but couldn't make it process the connections, I think it's because the asyncio event loop it uses should be running in the main thread, not a separate one. Then I replaced that with running mitmdump in a separate process and some tests now pass while some fail. Both noconnect tests fail with "Invalid request scheme: https" and the localhost:99999 test fails early, with "ValueError: Port out of range 0-65535". |
@wRAR Should we just update expectations then? |
@Gallaecio so there are two cases (in three tests) here. First, in test_https_connect_tunnel_error: we pass an incorrect URL (with a port 99999) to the crawler and expect a Second, in test_https_noconnect and test_https_noconnect_auth_error: we use a proxy URL with |
mitmproxy is ported to Python 3 (in fact, it is now Python3-only), so it'd be nice to enable test_proxy_connect.py in Python 3.
The text was updated successfully, but these errors were encountered: