|
3 | 3 |
|
4 | 4 | Requirements: |
5 | 5 | mitmproxy is installed automatically via the [development] extras in setup.cfg |
6 | | - (Python 3.10+ only - mitmproxy has dependency conflicts on Python 3.9) |
| 6 | + (Python 3.12+ only - mitmproxy 12+ requires Python 3.12 and is needed for cryptography >=46) |
7 | 7 |
|
8 | 8 | Important: |
9 | 9 | When connecting through mitmproxy, you MUST set disable_ocsp_checks=True |
|
26 | 26 |
|
27 | 27 | @pytest.mark.skipolddriver |
28 | 28 | @pytest.mark.skipif( |
29 | | - sys.version_info < (3, 10), |
30 | | - reason="mitmproxy not installed for Python 3.9 due to dependency conflicts", |
| 29 | + sys.version_info < (3, 12), |
| 30 | + reason="mitmproxy requires Python 3.12+ (mitmproxy 12+ needed for cryptography >=46)", |
31 | 31 | ) |
32 | 32 | def test_put_with_https_proxy(conn_cnx, tmp_path, mitm_proxy, monkeypatch): |
33 | 33 | test_file = tmp_path / "test_data.csv" |
@@ -62,8 +62,8 @@ def test_put_with_https_proxy(conn_cnx, tmp_path, mitm_proxy, monkeypatch): |
62 | 62 |
|
63 | 63 | @pytest.mark.skipolddriver |
64 | 64 | @pytest.mark.skipif( |
65 | | - sys.version_info < (3, 10) or IS_WINDOWS, |
66 | | - reason="mitmproxy not installed for Python 3.9 due to dependency conflicts", |
| 65 | + sys.version_info < (3, 12) or IS_WINDOWS, |
| 66 | + reason="mitmproxy requires Python 3.12+ (mitmproxy 12+ needed for cryptography >=46)", |
67 | 67 | ) |
68 | 68 | def test_put_with_https_proxy_and_no_proxy_regression( |
69 | 69 | conn_cnx, tmp_path, mitm_proxy, monkeypatch |
|
0 commit comments