diff --git a/tests/others/test_config.py b/tests/others/test_config.py index 3492ec3508df..eea7bfdb4442 100644 --- a/tests/others/test_config.py +++ b/tests/others/test_config.py @@ -270,7 +270,7 @@ def test_use_default_values(self): config.save_config(tmpdirname) # now loading it with SampleObject2 should put f into `_use_default_values` - config = SampleObject2.from_config(tmpdirname) + config = SampleObject2.from_config(SampleObject2.load_config(tmpdirname)) assert "f" in config._use_default_values assert config.f == [1, 3]