Skip to content

Commit 050d3a6

Browse files
committed
Suppress warnings for test output
1 parent 834a385 commit 050d3a6

26 files changed

Lines changed: 23 additions & 42 deletions

tests/example_tox.ini

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ qa = mypy, lint
88
[testenv]
99
commands = python --version
1010
skip_install = True
11-
setenv = PYTHONHASHSEED = 1234
11+
setenv =
12+
PYTHONHASHSEED = 1234
13+
PYTHONWARNINGS=ignore
1214

1315
[testenv:build]
1416
commands = python -c "print('This is the build testenv')"
@@ -18,9 +20,13 @@ setenv = PYTHONHASHSEED = 5678
1820
[testenv:mypy]
1921
commands = python -c "print('This is the mypy testenv')"
2022
skip_install = True
21-
setenv = PYTHONHASHSEED = 2468
23+
setenv =
24+
PYTHONHASHSEED = 2468
25+
PYTHONWARNINGS=ignore
2226

2327
[testenv:lint]
2428
commands = python -c "print('This is the lint testenv')"
2529
skip_install = True
26-
setenv = PYTHONHASHSEED = 1357
30+
setenv =
31+
PYTHONHASHSEED = 1357
32+
PYTHONWARNINGS=ignore

tests/example_tox_braces.ini

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,17 @@ envlist =
1010
test = py37-attrs{19.3,20.2}, py38-attrs{19.3,20.2}, py39-attrs{19.3,20.2}
1111
qa = mypy, lint
1212

13+
[testenv:.package]
14+
commands = python --version
15+
skip_install = True
16+
setenv = PYTHONWARNINGS=ignore
17+
1318
[testenv]
1419
commands = python --version
1520
skip_install = True
16-
setenv = PYTHONHASHSEED = 1234
21+
setenv =
22+
PYTHONHASHSEED = 1234
23+
PYTHONWARNINGS=ignore
1724

1825
[testenv:build]
1926
commands = python -c "print('This is the build testenv')"
@@ -23,9 +30,13 @@ setenv = PYTHONHASHSEED = 5678
2330
[testenv:mypy]
2431
commands = python -c "print('This is the mypy testenv')"
2532
skip_install = True
26-
setenv = PYTHONHASHSEED = 2468
33+
setenv =
34+
PYTHONHASHSEED = 2468
35+
PYTHONWARNINGS=ignore
2736

2837
[testenv:lint]
2938
commands = python -c "print('This is the lint testenv')"
3039
skip_install = True
31-
setenv = PYTHONHASHSEED = 1357
40+
setenv =
41+
PYTHONHASHSEED = 1357
42+
PYTHONWARNINGS=ignore

tests/test_tox_envlist_/test_tox_envlist_3_11_forward_envlist_posargs_.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
mypy create: .../.tox/mypy
2-
mypy installed: .../.tox/mypy/lib/python3.11/site-packages/pip/_internal/metadata/importlib/_envs.py:111: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html, from pip._vendor.pkg_resources import find_distributions
32
mypy run-test-pre: PYTHONHASHSEED='2468'
43
mypy run-test: commands[0] | python -c 'print('"'"'This is the mypy testenv'"'"')'
54
lint create: .../.tox/lint
6-
lint installed: .../.tox/lint/lib/python3.11/site-packages/pip/_internal/metadata/importlib/_envs.py:111: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html, from pip._vendor.pkg_resources import find_distributions
75
lint run-test-pre: PYTHONHASHSEED='1357'
86
lint run-test: commands[0] | python -c 'print('"'"'This is the lint testenv'"'"')'
97
___________________________________ summary ____________________________________

tests/test_tox_envlist_/test_tox_envlist_3_11_forward_invalid_combo_.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
WARNING: Ignoring '-n qa' option as '-e / --envlist' option given.
22
mypy create: .../.tox/mypy
3-
mypy installed: .../.tox/mypy/lib/python3.11/site-packages/pip/_internal/metadata/importlib/_envs.py:111: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html, from pip._vendor.pkg_resources import find_distributions
43
mypy run-test-pre: PYTHONHASHSEED='2468'
54
mypy run-test: commands[0] | python -c 'print('"'"'This is the mypy testenv'"'"')'
65
___________________________________ summary ____________________________________

tests/test_tox_envlist_/test_tox_envlist_3_11_forward_manual_envs_.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ py311 create: .../.tox/py311
22
py311 run-test-pre: PYTHONHASHSEED='1234'
33
py311 run-test: commands[0] | python --version
44
mypy create: .../.tox/mypy
5-
mypy installed: .../.tox/mypy/lib/python3.11/site-packages/pip/_internal/metadata/importlib/_envs.py:111: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html, from pip._vendor.pkg_resources import find_distributions
65
mypy run-test-pre: PYTHONHASHSEED='2468'
76
mypy run-test: commands[0] | python -c 'print('"'"'This is the mypy testenv'"'"')'
87
___________________________________ summary ____________________________________

tests/test_tox_envlist_/test_tox_envlist_3_11_forward_manual_envs_posargs_.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ py311 create: .../.tox/py311
22
py311 run-test-pre: PYTHONHASHSEED='1234'
33
py311 run-test: commands[0] | python --version
44
mypy create: .../.tox/mypy
5-
mypy installed: .../.tox/mypy/lib/python3.11/site-packages/pip/_internal/metadata/importlib/_envs.py:111: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html, from pip._vendor.pkg_resources import find_distributions
65
mypy run-test-pre: PYTHONHASHSEED='2468'
76
mypy run-test: commands[0] | python -c 'print('"'"'This is the mypy testenv'"'"')'
87
___________________________________ summary ____________________________________

tests/test_tox_envlist_/test_tox_envlist_3_11_forward_qa_envlist_.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
mypy create: .../.tox/mypy
2-
mypy installed: .../.tox/mypy/lib/python3.11/site-packages/pip/_internal/metadata/importlib/_envs.py:111: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html, from pip._vendor.pkg_resources import find_distributions
32
mypy run-test-pre: PYTHONHASHSEED='2468'
43
mypy run-test: commands[0] | python -c 'print('"'"'This is the mypy testenv'"'"')'
54
lint create: .../.tox/lint
6-
lint installed: .../.tox/lint/lib/python3.11/site-packages/pip/_internal/metadata/importlib/_envs.py:111: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html, from pip._vendor.pkg_resources import find_distributions
75
lint run-test-pre: PYTHONHASHSEED='1357'
86
lint run-test: commands[0] | python -c 'print('"'"'This is the lint testenv'"'"')'
97
___________________________________ summary ____________________________________

tests/test_tox_envlist_/test_tox_envlist_3_12_forward_envlist_posargs_.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
mypy create: .../.tox/mypy
2-
mypy installed: .../.tox/mypy/lib/python3.12/site-packages/pip/_internal/metadata/importlib/_envs.py:111: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html, from pip._vendor.pkg_resources import find_distributions
32
mypy run-test-pre: PYTHONHASHSEED='2468'
43
mypy run-test: commands[0] | python -c 'print('"'"'This is the mypy testenv'"'"')'
54
lint create: .../.tox/lint
6-
lint installed: .../.tox/lint/lib/python3.12/site-packages/pip/_internal/metadata/importlib/_envs.py:111: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html, from pip._vendor.pkg_resources import find_distributions
75
lint run-test-pre: PYTHONHASHSEED='1357'
86
lint run-test: commands[0] | python -c 'print('"'"'This is the lint testenv'"'"')'
97
___________________________________ summary ____________________________________

tests/test_tox_envlist_/test_tox_envlist_3_12_forward_invalid_combo_.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
WARNING: Ignoring '-n qa' option as '-e / --envlist' option given.
22
mypy create: .../.tox/mypy
3-
mypy installed: .../.tox/mypy/lib/python3.12/site-packages/pip/_internal/metadata/importlib/_envs.py:111: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html, from pip._vendor.pkg_resources import find_distributions
43
mypy run-test-pre: PYTHONHASHSEED='2468'
54
mypy run-test: commands[0] | python -c 'print('"'"'This is the mypy testenv'"'"')'
65
___________________________________ summary ____________________________________

tests/test_tox_envlist_/test_tox_envlist_3_12_forward_manual_envs_.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ py312 create: .../.tox/py312
22
py312 run-test-pre: PYTHONHASHSEED='1234'
33
py312 run-test: commands[0] | python --version
44
mypy create: .../.tox/mypy
5-
mypy installed: .../.tox/mypy/lib/python3.12/site-packages/pip/_internal/metadata/importlib/_envs.py:111: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html, from pip._vendor.pkg_resources import find_distributions
65
mypy run-test-pre: PYTHONHASHSEED='2468'
76
mypy run-test: commands[0] | python -c 'print('"'"'This is the mypy testenv'"'"')'
87
___________________________________ summary ____________________________________

0 commit comments

Comments
 (0)