diff options
author | Philippe Pepiot <philippe.pepiot@logilab.fr> | 2019-09-12 16:25:16 +0200 |
---|---|---|
committer | Philippe Pepiot <philippe.pepiot@logilab.fr> | 2019-09-12 16:25:16 +0200 |
commit | bd0b147cea7f916a3ceffcba11b15429a31d4264 (patch) | |
tree | 2f4719bb8529f0270f07918a7496edfe1cf622c6 /logilab/common/pytest.py | |
parent | 43fa2a92f8d8538a75ebbc56196ae8c068837211 (diff) | |
download | logilab-common-bd0b147cea7f916a3ceffcba11b15429a31d4264.tar.gz |
Make "configuration" classes get call __getitem__
In both ConfigurationMixIn and OptionsManager2ConfigurationAdapter.
Otherwise a child-class defining it's own __getitem__ wouldn't be called.
In ConfigurationMixIn.get, also catch for OptionError like before.
We could think about caching OptionError in __getitem__ but there's test
asserting this method can raise OptionError, so...
Diffstat (limited to 'logilab/common/pytest.py')
0 files changed, 0 insertions, 0 deletions