From c3497d2b2a69c82f17d04fcbc586d069871f0a8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Wed, 14 Dec 2022 11:47:07 +0100 Subject: [PATCH] Don't assume the tests allways run via tox --- tests/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/utils.py b/tests/utils.py index f566763..ea180f4 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -38,7 +38,7 @@ def tox(*args, quiet=True, **kwargs): kwargs.setdefault("cwd", os.getcwd()) q = ("-q",) if quiet else () env = dict(os.environ) - env.pop("TOX_WORK_DIR") + env.pop("TOX_WORK_DIR", None) kwargs.setdefault("env", env) try: print("current", os.getcwd(), "running in", kwargs["cwd"])