Skip to content

Commit 08dcc95

Browse files
authored
Merge pull request #874 from henklaak/fix_editsdefaults2
Fix editsdefaults fixture
2 parents 8972e82 + 2f2fcaa commit 08dcc95

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

control/tests/conftest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,8 @@ def editsdefaults():
101101
"""Make sure any changes to the defaults only last during a test."""
102102
restore = control.config.defaults.copy()
103103
yield
104-
control.config.defaults = restore.copy()
104+
control.config.defaults.clear()
105+
control.config.defaults.update(restore)
105106

106107

107108
@pytest.fixture(scope="function")

0 commit comments

Comments
 (0)