From 586e5b0a75167b20882728f642c8a81195afb71d Mon Sep 17 00:00:00 2001 From: Stephen Finucane Date: Thu, 23 Mar 2023 11:20:51 +0000 Subject: tests: Enable SQLAlchemy 2.0 deprecation warnings Well, sort of. We enable them but immediately filter out the ones we're actually seeing, the rationale being that we can address these in a piecemeal fashion without the risk of introducing new issues. There's a lot more to be done here. However, the work done in oslo.db [1], nova [2], cinder [2] etc. should provide a guide for how to resolve the outstanding issues. [1] https://review.opendev.org/q/topic:sqlalchemy-20+project:openstack/oslo.db [2] https://review.opendev.org/q/topic:sqlalchemy-20+project:openstack/nova [3] https://review.opendev.org/q/topic:sqlalchemy-20+project:openstack/cinder Signed-off-by: Stephen Finucane Change-Id: I5877aa495486ba28519b51d800c0474fd72859a5 --- tox.ini | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'tox.ini') diff --git a/tox.ini b/tox.ini index 4998edd17..1e1b7c174 100644 --- a/tox.ini +++ b/tox.ini @@ -5,9 +5,11 @@ minversion = 3.18.0 [testenv] basepython = python3 -setenv = VIRTUAL_ENV={envdir} - PYTHONWARNINGS=default::DeprecationWarning - OS_TEST_PATH=heat/tests +setenv = + OS_TEST_PATH=heat/tests + PYTHONDONTWRITEBYTECODE=1 +# TODO(stephenfin): Remove once we bump our upper-constraint to SQLAlchemy 2.0 + SQLALCHEMY_WARN_20=1 usedevelop = True deps = -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} -r{toxinidir}/requirements.txt -- cgit v1.2.1