diff options
author | fuzzyman <devnull@localhost> | 2009-10-26 23:25:13 +0000 |
---|---|---|
committer | fuzzyman <devnull@localhost> | 2009-10-26 23:25:13 +0000 |
commit | c58901ce622a846bee6df45f2225e2e2c2a6e15c (patch) | |
tree | 80cf4b6b2521776ababf155722df90ae818ca396 | |
parent | 9fd92dd09a4791046489bc7604881bcab819ee4a (diff) | |
download | configobj-c58901ce622a846bee6df45f2225e2e2c2a6e15c.tar.gz |
Change in behavior for missing values / sections in ConfigObj.validate when preserve_errors is True.
-rw-r--r-- | test_configobj.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test_configobj.py b/test_configobj.py index be4a5bd..940692d 100644 --- a/test_configobj.py +++ b/test_configobj.py @@ -2109,6 +2109,9 @@ def _test_validation_with_preserve_errors(): >>> v = Validator() >>> spec = ['[section]', 'foo = integer'] >>> c = ConfigObj(configspec=spec) + >>> c.validate(v, preserve_errors=True) + False + >>> c = ConfigObj(['[section]'], configspec=spec) >>> c.validate(v) False >>> c.validate(v, preserve_errors=True) |