Disable persistence for test_self.

authorClaudiu Popa <pcmanticore@gmail.com>
changeset18da1f9006b2
branchdefault
phasepublic
hiddenno
parent revision#2f302d631e3c Try to register the else-if checker explicitly instead on relying on path assumptions.
child revision#4e6188183f88 pylint/config.py: Add another check of the current working directory for `.pylintrc`., #5ad1348455fe Accept only functions and methods for the deprecated-method checker.
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 18da1f9006b2fdae7063821a0d994678a19c8b2d
# Parent 2f302d631e3c950d29edd6f0d090a8df1ab979d6
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)