summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Berman <Julian@GrayVines.com>2021-10-31 10:59:45 -0400
committerJulian Berman <Julian@GrayVines.com>2021-10-31 10:59:45 -0400
commit832888ff219e3c5cdaee9990c456f75ecd47bb48 (patch)
treef8e467a53025f35a38649b9d5eb17f163e6e0419
parentad732181b379f727d0559d389ab2ce59f7206304 (diff)
downloadjsonschema-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.ini3
1 files changed, 1 insertions, 2 deletions
diff --git a/tox.ini b/tox.ini
index cb2fbeb..e2affa4 100644
--- a/tox.ini
+++ b/tox.ini
@@ -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