diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 08aef91b..9b908c6d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -32,7 +32,7 @@ repos: - id: flake8 name: flake8 additional_dependencies: - - hacking>=3.0.1,<3.1.0 + - hacking>=6.1.0,<6.2.0 language: python entry: flake8 files: '^.*\.py$' diff --git a/oslo_config/tests/test_sources.py b/oslo_config/tests/test_sources.py index 2da73da1..7c1e8580 100644 --- a/oslo_config/tests/test_sources.py +++ b/oslo_config/tests/test_sources.py @@ -308,8 +308,8 @@ class URISourceTestCase(base.BaseTestCase): # testing driver loading self.assertEqual(self.conf._sources, []) self.conf._load_alternative_sources() - self.assertEqual(type(self.conf._sources[0]), - _uri.URIConfigurationSource) + self.assertIsInstance(self.conf._sources[0], + _uri.URIConfigurationSource) source = self.conf._open_source_from_opt_group(group)