Skip to content

Commit

Permalink
CodeQL: Mitigate report about py/unused-local-variable
Browse files Browse the repository at this point in the history
  • Loading branch information
amotl committed Nov 24, 2022
1 parent 6b07527 commit c022e79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')

Expand Down

0 comments on commit c022e79

Please sign in to comment.