From 3f733437daee4f391fdae9b51540c699e3ff6795 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Tue, 3 Jan 2023 15:14:35 -0800 Subject: coredata: use a frozenset instead of a dict where values are always None --- unittests/allplatformstests.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'unittests/allplatformstests.py') diff --git a/unittests/allplatformstests.py b/unittests/allplatformstests.py index a98cd94..ac60907 100644 --- a/unittests/allplatformstests.py +++ b/unittests/allplatformstests.py @@ -1507,12 +1507,12 @@ class AllPlatformTests(BasePlatformTests): test. Needs to be a unit test because it accesses Meson internals. ''' testdir = os.path.join(self.common_test_dir, '150 reserved targets') - targets = mesonbuild.coredata.FORBIDDEN_TARGET_NAMES + targets = set(mesonbuild.coredata.FORBIDDEN_TARGET_NAMES) # We don't actually define a target with this name - targets.pop('build.ninja') + targets.remove('build.ninja') # Remove this to avoid multiple entries with the same name # but different case. - targets.pop('PHONY') + targets.remove('PHONY') for i in targets: self.assertPathExists(os.path.join(testdir, i)) -- cgit v1.1