Disable persistence for test_self.

authorClaudiu Popa <pcmanticore@gmail.com>
changesetbb045a7ac647
branchdefault
phasepublic
hiddenno
parent revision#2089e0d2aa9d Try to register the else-if checker explicitly instead on relying on path assumptions.
child revision#103c6ccf31f4 Added tag pylint-1.5.1 for changeset bb045a7ac647
files modified by this revision
pylint/test/test_self.py
# HG changeset patch
# User Claudiu Popa <pcmanticore@gmail.com>
# Date 1449071269 -7200
# Wed Dec 02 17:47:49 2015 +0200
# Node ID bb045a7ac647cd636221815a6f680fa7ca71f63b
# Parent 2089e0d2aa9dd620376112081500248b1ec761d3
Disable persistence for test_self.

diff --git a/pylint/test/test_self.py b/pylint/test/test_self.py
@@ -90,10 +90,11 @@
1          if output is not None:
2              msg = '%s. Below pylint output: \n%s' % (msg, output)
3          self.assertEqual(pylint_code, code, msg)
4 
5      def _run_pylint(self, args, out, reporter=None):
6 +        args = args + ['--persistent=no']
7          with _patch_streams(out):
8              with self.assertRaises(SystemExit) as cm:
9                  with warnings.catch_warnings():
10                      warnings.simplefilter("ignore")
11                      Run(args, reporter=reporter)