From: Mike Bayer Date: Mon, 27 Oct 2025 15:12:44 +0000 (-0400) Subject: ensure PYTHONPATH is blanked out X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2bb963891b8bbc3b2ec67c848cb405596c8ca3f6;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git ensure PYTHONPATH is blanked out this is in the tox.ini file also. without it, the tests run from my local ./lib/ when I set PYTHONPATH on the outside Change-Id: I1ec88edc0e1aeafbfa95054ec4ccb30bcb22d55f --- diff --git a/noxfile.py b/noxfile.py index 6b593b06fb..a5afe31673 100644 --- a/noxfile.py +++ b/noxfile.py @@ -192,6 +192,10 @@ def _tests( timing_intensive: bool = True, coverage: bool = False, ) -> None: + + # ensure external PYTHONPATH not interfering + session.env["PYTHONPATH"] = "" + # PYTHONNOUSERSITE - this *MUST* be set so that the ./lib/ import # set up explicitly in test/conftest.py is *disabled*, so that # when SQLAlchemy is built into the .nox area, we use that and not the