openbsd-ports/devel/pylint/patches/patch-test_unittest_lint_py
2011-08-31 12:42:24 +00:00

17 lines
586 B
Plaintext

$OpenBSD: patch-test_unittest_lint_py,v 1.2 2011/08/31 12:42:24 mpi Exp $
--- test/unittest_lint.py.orig Mon Jul 18 16:42:45 2011
+++ test/unittest_lint.py Fri Aug 19 10:16:23 2011
@@ -265,6 +265,12 @@
os.environ.pop('PYLINTRC', None)
def test_pylint_home(self):
+ if os.environ.has_key('PYLINTHOME'):
+ pylintd = os.environ['PYLINTHOME']
+ reload(config)
+ self.assertEquals(config.PYLINT_HOME, pylintd)
+ return
+
uhome = os.path.expanduser('~')
if uhome == '~':
expected = '.pylint.d'