Skip to content

Commit 832888f

Browse files
committed
Set PYTHONWARNINGS only for the test run itself.
Other things (the install :/) are just too noisy themselves, and raise errors.
1 parent ad73218 commit 832888f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tox.ini

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ changedir = {envtmpdir}
1313
passenv = CODECOV* CI
1414
setenv =
1515
JSON_SCHEMA_TEST_SUITE = {toxinidir}/json
16-
tests: PYTHONWARNINGS = error,ignore:Creating a LegacyVersion:DeprecationWarning,ignore:SelectableGroups dict interface:DeprecationWarning,ignore:":UserWarning,ignore:the imp module:DeprecationWarning,ignore:The distutils:DeprecationWarning
1716

1817
coverage,codecov: MAYBE_COVERAGE = coverage run -m
1918
coverage,codecov: COVERAGE_RCFILE={toxinidir}/.coveragerc
@@ -28,7 +27,7 @@ commands =
2827
format,perf: {envpython} -m pip install '{toxinidir}[format]'
2928
format_nongpl: {envpython} -m pip install '{toxinidir}[format_nongpl]'
3029

31-
tests,coverage,codecov: {envpython} -m {env:MAYBE_COVERAGE:} twisted.trial {posargs:jsonschema}
30+
tests,coverage,codecov: {envpython} -W 'error' -m {env:MAYBE_COVERAGE:} twisted.trial {posargs:jsonschema}
3231
tests: {envpython} -m doctest {toxinidir}/README.rst
3332

3433
coverage: {envpython} -m coverage report --show-missing

0 commit comments

Comments
 (0)