Skip to content

Commit e61bb7a

Browse files
committed
Put a ceiling for urllib3 in tests (<2)
1 parent aea5b58 commit e61bb7a

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

tox.ini

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ filterwarnings =
1919
[testenv]
2020
usedevelop=True
2121
commands =
22+
pip install urllib3<2
2223
pip install pylxd
2324
python -m pytest --tb native -ra -v -s -n auto -k 'not integration' -m 'not serial' {posargs}
2425
passenv =
@@ -58,19 +59,22 @@ deps =
5859
[testenv:integration]
5960
envdir = {toxworkdir}/py3
6061
commands =
62+
pip install urllib3<2
6163
pip install pylxd
6264
python -m pytest --tb native -ra -v -n auto -k 'integration' -m 'not serial' {posargs}
6365

6466
[testenv:unit]
6567
envdir = {toxworkdir}/py3
6668
commands =
69+
pip install urllib3<2
6770
pip install pylxd
6871
python -m pytest --tb native -ra -v -n auto {toxinidir}/tests/unit {posargs}
6972

7073
[testenv:serial]
7174
# tests that can't be run in parallel
7275
envdir = {toxworkdir}/py3
7376
commands =
77+
pip install urllib3<2
7478
pip install pylxd
7579
python -m pytest --tb native -ra -v -s {posargs:-m 'serial'}
7680

0 commit comments

Comments
 (0)