$OpenBSD: patch-tests-lint-unittest_lint_py,v 1.2 2021/03/31 14:07:48 sthen Exp $

Index: tests/lint/unittest_lint.py
--- tests/lint/unittest_lint.py.orig
+++ tests/lint/unittest_lint.py
@@ -624,6 +624,12 @@ def pop_pylintrc():
 
 @pytest.mark.usefixtures("pop_pylintrc")
 def test_pylint_home():
+    if os.environ['PYLINTHOME']:
+        pylintd = os.environ['PYLINTHOME']
+        reload_module(config)
+        self.assertEqual(config.PYLINT_HOME, pylintd)
+        return
+
     uhome = os.path.expanduser("~")
     if uhome == "~":
         expected = ".pylint.d"
