]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
ensure PYTHONPATH is blanked out
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 27 Oct 2025 15:12:44 +0000 (11:12 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 27 Oct 2025 15:12:44 +0000 (11:12 -0400)
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

noxfile.py

index 6b593b06fb3212da2e3bcb0555d22578c8238a89..a5afe3167392c19365636e8b2a7683ac8dade8da 100644 (file)
@@ -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