summaryrefslogtreecommitdiff
path: root/testutils.py
diff options
context:
space:
mode:
authorSylvain Th?nault <sylvain.thenault@logilab.fr>2014-04-09 09:02:38 +0200
committerSylvain Th?nault <sylvain.thenault@logilab.fr>2014-04-09 09:02:38 +0200
commit413a6b712da2afa80f74b7c740df5cfb41294cae (patch)
treeb4b7347180fea66dde65939c933c45277008a0fc /testutils.py
parent283d0c97872ad21a31ed4b6d296f8d34ea216841 (diff)
downloadpylint-413a6b712da2afa80f74b7c740df5cfb41294cae.tar.gz
[testutils] fix set_config: 'reopening' the checker may be necessary to new configuration is properly considered
Diffstat (limited to 'testutils.py')
-rw-r--r--testutils.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/testutils.py b/testutils.py
index 331def0..d19be90 100644
--- a/testutils.py
+++ b/testutils.py
@@ -158,6 +158,9 @@ def set_config(**kwargs):
def _Forward(self):
for key, value in kwargs.iteritems():
setattr(self.checker.config, key, value)
+ if isinstance(self, CheckerTestCase):
+ # reopen checker in case, it may be interested in configuration change
+ self.checker.open()
fun(self)
return _Forward