8000 Fix editsdefaults fixture · python-control/python-control@2f2fcaa · GitHub
[go: up one dir, main page]

Skip to content

Commit 2f2fcaa

Browse files
committed
Fix editsdefaults fixture

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)
0