mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 10:07:14 +02:00
Fix tests
This commit is contained in:
@ -57,10 +57,10 @@ def isolated_pio_core(request, tmpdir_factory):
|
|||||||
|
|
||||||
def fin():
|
def fin():
|
||||||
for key, item in backup_env_vars.items():
|
for key, item in backup_env_vars.items():
|
||||||
if item["old"] is None:
|
if item["old"] is not None:
|
||||||
del os.environ[key]
|
|
||||||
else:
|
|
||||||
os.environ[key] = item["old"]
|
os.environ[key] = item["old"]
|
||||||
|
elif key in os.environ:
|
||||||
|
del os.environ[key]
|
||||||
|
|
||||||
request.addfinalizer(fin)
|
request.addfinalizer(fin)
|
||||||
return core_dir
|
return core_dir
|
||||||
|
Reference in New Issue
Block a user