diff --git a/.gitignore b/.gitignore index 723dc68..66c9dec 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ __pycache__ /.eggs .venv venv +.coverage diff --git a/tests/test_cli.py b/tests/test_cli.py index 95e3fc7..e148601 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -305,6 +305,9 @@ class CommandLineTestCase(unittest.TestCase): config = os.path.join(dir, 'config') self.addCleanup(os.environ.update, HOME=os.environ['HOME']) + # remove other env vars to make sure we are using the HOME config file. + os.environ.pop('YAMLLINT_CONFIG_FILE', None) + os.environ.pop('XDG_CONFIG_HOME', None) os.environ['HOME'] = home with open(config, 'w') as f: