From f8b11442aae7fffcb093534f9a5e5081fdeffabb Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sun, 29 Aug 2021 21:36:24 -0400 Subject: build: defend against a local PYTHONPYCACHEPREFIX setting I had PYTYHONPYCACHEPREFIX=/tmp/pyc in my local shell, which put pyc files elsewhere. A few tests care very much about .pyc files, so those tests failed. This setting in tox.ini will ensure that .pyc files are written locally so the tests will pass. --- tox.ini | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tox.ini b/tox.ini index 76a1b1db..d1b89374 100644 --- a/tox.ini +++ b/tox.ini @@ -31,6 +31,9 @@ setenv = pypy,pypy3: COVERAGE_NO_CTRACER=no C extension under PyPy jython: COVERAGE_NO_CTRACER=no C extension under Jython jython: PYTEST_ADDOPTS=-n 0 + # For some tests, we need .pyc files written in the current directory, + # so override any local setting. + PYTHONPYCACHEPREFIX= commands = python setup.py --quiet clean develop -- cgit v1.2.1