summaryrefslogtreecommitdiff
path: root/tests/integration
diff options
context:
space:
mode:
authorIan Cordasco <graffatcolmingov@gmail.com>2016-06-16 16:19:09 -0500
committerIan Cordasco <graffatcolmingov@gmail.com>2016-06-16 16:19:09 -0500
commit3f434f7d1cf3f7a8e48456410db94376bae4bc24 (patch)
tree9adbba0f052e1b5e99cf311a54cb063fcbc5520e /tests/integration
parent9a9bcdfb5252aef2fb4985a7769fd263c6d2a651 (diff)
downloadflake8-3f434f7d1cf3f7a8e48456410db94376bae4bc24.tar.gz
Add broken config file to test error handling
ConfigFileFinder should absolutely handle broken/invalid config files by refusing to try to parse them. Here we catch the ParsingError, log the exception, and then return normally. The RawConfigParser instance is perfectly valid still and will behave as if nothing had been read and we just need to indicate that we didn't find any files worthy of reading. Related to: https://github.com/PyCQA/pycodestyle/issues/506
Diffstat (limited to 'tests/integration')
0 files changed, 0 insertions, 0 deletions