diff options
author | Julian Berman <Julian@GrayVines.com> | 2021-10-31 10:59:45 -0400 |
---|---|---|
committer | Julian Berman <Julian@GrayVines.com> | 2021-10-31 10:59:45 -0400 |
commit | 832888ff219e3c5cdaee9990c456f75ecd47bb48 (patch) | |
tree | f8e467a53025f35a38649b9d5eb17f163e6e0419 | |
parent | ad732181b379f727d0559d389ab2ce59f7206304 (diff) | |
download | jsonschema-832888ff219e3c5cdaee9990c456f75ecd47bb48.tar.gz |
Set PYTHONWARNINGS only for the test run itself.
Other things (the install :/) are just too noisy themselves,
and raise errors.
-rw-r--r-- | tox.ini | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -13,7 +13,6 @@ changedir = {envtmpdir} passenv = CODECOV* CI setenv = JSON_SCHEMA_TEST_SUITE = {toxinidir}/json - tests: PYTHONWARNINGS = error,ignore:Creating a LegacyVersion:DeprecationWarning,ignore:SelectableGroups dict interface:DeprecationWarning,ignore:":UserWarning,ignore:the imp module:DeprecationWarning,ignore:The distutils:DeprecationWarning coverage,codecov: MAYBE_COVERAGE = coverage run -m coverage,codecov: COVERAGE_RCFILE={toxinidir}/.coveragerc @@ -28,7 +27,7 @@ commands = format,perf: {envpython} -m pip install '{toxinidir}[format]' format_nongpl: {envpython} -m pip install '{toxinidir}[format_nongpl]' - tests,coverage,codecov: {envpython} -m {env:MAYBE_COVERAGE:} twisted.trial {posargs:jsonschema} + tests,coverage,codecov: {envpython} -W 'error' -m {env:MAYBE_COVERAGE:} twisted.trial {posargs:jsonschema} tests: {envpython} -m doctest {toxinidir}/README.rst coverage: {envpython} -m coverage report --show-missing |