Skip to content

Commit 5101e76

Browse files
SNOW-762783: fix ci
1 parent b1aa116 commit 5101e76

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

setup.cfg

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,8 @@ boto =
8585
development =
8686
Cython
8787
coverage
88-
mitmproxy; python_version < '3.10'
8988
mitmproxy>=6.0.0; python_version >= '3.10'
9089
more-itertools
91-
setuptools<58; python_version < '3.10'
9290
numpy<=2.2.4
9391
pendulum!=2.1.1
9492
pexpect

test/integ/test_proxies.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
44
Requirements:
55
mitmproxy is installed automatically via the [development] extras in setup.cfg
6+
(Python 3.10+ only - mitmproxy has dependency conflicts on Python 3.9)
67
78
Important:
89
When connecting through mitmproxy, you MUST set disable_ocsp_checks=True
@@ -11,6 +12,8 @@
1112
"""
1213
from __future__ import annotations
1314

15+
import sys
16+
1417
import pytest
1518

1619
try:
@@ -20,6 +23,10 @@
2023

2124

2225
@pytest.mark.skipolddriver
26+
@pytest.mark.skipif(
27+
sys.version_info < (3, 10),
28+
reason="mitmproxy not installed for Python 3.9 due to dependency conflicts",
29+
)
2330
def test_put_with_https_proxy(conn_cnx, tmp_path, mitm_proxy, monkeypatch):
2431
test_file = tmp_path / "test_data.csv"
2532
test_file.write_text("col1,col2\n1,2\n3,4\n")
@@ -51,6 +58,10 @@ def test_put_with_https_proxy(conn_cnx, tmp_path, mitm_proxy, monkeypatch):
5158

5259

5360
@pytest.mark.skipolddriver
61+
@pytest.mark.skipif(
62+
sys.version_info < (3, 10),
63+
reason="mitmproxy not installed for Python 3.9 due to dependency conflicts",
64+
)
5465
def test_put_with_https_proxy_and_no_proxy_regression(
5566
conn_cnx, tmp_path, mitm_proxy, monkeypatch
5667
):

0 commit comments

Comments
 (0)