From b890d2f16c9df863057c88f91d739e8cca3e0315 Mon Sep 17 00:00:00 2001 From: Julian Berman Date: Tue, 31 May 2022 12:43:18 -0400 Subject: [PATCH] Ignore a deprecation warning coming from pkg_resources on 3.11 See pypa/setuptools#3276. --- tox.ini | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index bc40266c1..b9c12d616 100644 --- a/tox.ini +++ b/tox.ini @@ -28,7 +28,8 @@ commands = format,perf: {envpython} -m pip install '{toxinidir}[format]' format_nongpl: {envpython} -m pip install '{toxinidir}[format_nongpl]' - tests,coverage,codecov: {envpython} -W 'error' -m {env:MAYBE_COVERAGE:} twisted.trial {posargs:jsonschema} + # Ignore the deprecation warning until pypa/setuptools#3276 is released + tests,coverage,codecov: {envpython} -Werror -W"ignore:module 'sre_constants' is deprecated:DeprecationWarning" -m {env:MAYBE_COVERAGE:} twisted.trial {posargs:jsonschema} tests: {envpython} -m doctest {toxinidir}/README.rst coverage: {envpython} -m coverage report --show-missing