]> 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:13:39 +0000 (11:13 -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
(cherry picked from commit 2bb963891b8bbc3b2ec67c848cb405596c8ca3f6)

noxfile.py

index 3b60941b16bc1a9d138766186d2a1f01b12cbf57..9d511af933fa0cf228dbd422bce65d34f286b557 100644 (file)
@@ -204,6 +204,10 @@ def _tests(
     coverage: bool = False,
     mypy: 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