From bf0ca81cae366b91f079b84ea653fb40b34b086e Mon Sep 17 00:00:00 2001 From: antazoey Date: Tue, 28 Jan 2025 15:13:41 -0600 Subject: [PATCH] test: wasnt prperly unsetting env --- tests/functional/test_config.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/functional/test_config.py b/tests/functional/test_config.py index b9a466d32b..2c31d22381 100644 --- a/tests/functional/test_config.py +++ b/tests/functional/test_config.py @@ -144,6 +144,8 @@ def run_test(cls: Callable, attr: str, name: str, value: str, expected: Any = No finally: if before is not None: os.environ[name] = before + else: + os.environ.pop(name, None) # Test different config classes. run_test(ApeConfig, "contracts_folder", "APE_CONTRACTS_FOLDER", "3465220869b2")