From 20966c49687d4333a84a73aea40309f190c4a8ce Mon Sep 17 00:00:00 2001 From: Akihiro Motoki Date: Thu, 12 Jan 2023 12:23:42 +0900 Subject: [PATCH] Fix tox.ini parse error with tox 4.2.8 The validation of setenv in the recent tox like 4.2.8 seems more strict. We need a space between a factor and envvar. Note that we need to discuss the three variants of PYTHONWARNINGS but this commit focuses on fixing the gate failure due to tox.ini. Change-Id: I13be2d39850e77f15e5bbf67b0022b10b09e5c6f --- tox.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index fc44eec061..59aacaab9c 100644 --- a/tox.ini +++ b/tox.ini @@ -14,7 +14,7 @@ setenv = PYTHONDONTWRITEBYTECODE = 1 # TODO(amotoki): There are three variants of PYTHONWARNINGS. They should be merged. PYTHONWARNINGS = once,ignore::PendingDeprecationWarning - py{3,39}:PYTHONWARNINGS = once,ignore::PendingDeprecationWarning,ignore::ImportWarning:backports + py{3,39}: PYTHONWARNINGS = once,ignore::PendingDeprecationWarning,ignore::ImportWarning:backports # DeprecationWarning is disabled in dj32 tox env as Django 3.2 # deprecated Django 2.2 features. This workaround is just to reduce # the number of warnings due to this change.