Skip to content

Commit c01af53

Browse files
author
Vasileios Karakasis
committed
Fix Tmod4 unit tests
1 parent 7175a8e commit c01af53

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

unittests/test_modules.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ def modules_system_nopath(request, monkeypatch):
2424
except ConfigError:
2525
pytest.skip(f'{request.param} not supported')
2626

27-
return m
27+
environ_save = env.snapshot()
28+
yield m
29+
environ_save.restore()
2830

2931

3032
@pytest.fixture

0 commit comments

Comments
 (0)