From c022e79795a59e1d5cce62f1787ace05eaa87da4 Mon Sep 17 00:00:00 2001 From: Andreas Motl Date: Tue, 22 Nov 2022 19:55:08 +0100 Subject: [PATCH] CodeQL: Mitigate report about `py/unused-local-variable` --- tests/test_config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_config.py b/tests/test_config.py index 523fb5c6..82227daf 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -54,7 +54,7 @@ def test_parse_config_path(self): def test_invalid_config(self): with self.assertRaises(ConfigurationError) as cm: path = os.path.join(self.tmp_dir, 'invalid') - conf = Configuration(path) # noqa: F841 - creating instance fails + Configuration(path) # noqa: F841 - creating instance fails self.assertEqual(str(cm.exception), 'Path to configuration file needs to end with .cfg')