diff --git a/tests/test_settings.py b/tests/test_settings.py index c906c63ce406427179c2cf015ec9c28ab816d32b..b17b1b87ab8e7ed747d2c2d0dd56d4e13053737a 100644 --- a/tests/test_settings.py +++ b/tests/test_settings.py @@ -433,6 +433,15 @@ def test_writeConfigFile(): readback = pickle.load(f) assert testdata == readback + # should fail gracefuly + # if write is not possible + s = settings.Settings(cfgid='test', cfgdir=testdir, writeOnExit=False) + + # testdir has been removed, + # but call should not crash + s.writeConfigFile() + + def test_set():