Merge pull request #874 from henklaak/fix_editsdefaults2 · python-control/python-control@08dcc95

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