From 8c9b09a994fc60cfd5a4ce9bac0f4bfdf627ff16 Mon Sep 17 00:00:00 2001 From: Alexander Grund Date: Wed, 25 Oct 2023 12:31:34 +0200 Subject: [PATCH] Explicitely use `set()` instead of `{}` Some Python version may interpret the latter as an (empty) dict instead of a set --- test/framework/easyconfig.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/framework/easyconfig.py b/test/framework/easyconfig.py index 5fde75938d..fe921aa52e 100644 --- a/test/framework/easyconfig.py +++ b/test/framework/easyconfig.py @@ -387,7 +387,7 @@ def test_false_dep_version(self): eb = EasyConfig(self.eb_file) deps = eb.dependencies() self.assertEqual(deps, []) - self.assertEqual(eb.dependency_names(), {}) + self.assertEqual(eb.dependency_names(), set()) def test_extra_options(self): """ extra_options should allow other variables to be stored """ @@ -1655,7 +1655,7 @@ def test_filter_deps(self): init_config(build_options=build_options) ec = EasyConfig(ec_file, validate=False) self.assertEqual(ec.dependencies(), []) - self.assertEqual(ec.dependency_names(), {}) + self.assertEqual(ec.dependency_names(), set()) def test_replaced_easyconfig_parameters(self): """Test handling of replaced easyconfig parameters."""