Skip to content

Commit 5f506b2

Browse files
authored
Merge branch 'python-control:main' into feature_print_zpk
2 parents 2ca47e1 + 08dcc95 commit 5f506b2

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)