aboutsummaryrefslogtreecommitdiff
path: root/run_unittests.py
diff options
context:
space:
mode:
authorJohn Ericson <git@JohnEricson.me>2020-08-03 12:00:09 -0400
committerJussi Pakkanen <jpakkane@gmail.com>2020-08-04 00:24:05 +0300
commit2447a1132adcbde750fb9962ca60e44ff103a651 (patch)
tree2d6d8823b54776365e5f93c0c3e9c61c60690e27 /run_unittests.py
parent70edf82c6c77902cd64f44848302bbac92d611d8 (diff)
downloadmeson-2447a1132adcbde750fb9962ca60e44ff103a651.zip
meson-2447a1132adcbde750fb9962ca60e44ff103a651.tar.gz
meson-2447a1132adcbde750fb9962ca60e44ff103a651.tar.bz2
Capitalize some constants in coredata
I've been getting confused between them and similarly-named other things, so I figured it was high time to clean this up.
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-xrun_unittests.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/run_unittests.py b/run_unittests.py
index 6d7eba2..0418ccf 100755
--- a/run_unittests.py
+++ b/run_unittests.py
@@ -1372,8 +1372,8 @@ class DataTests(unittest.TestCase):
found_entries |= options
self.assertEqual(found_entries, set([
- *mesonbuild.coredata.builtin_options.keys(),
- *mesonbuild.coredata.builtin_options_per_machine.keys()
+ *mesonbuild.coredata.BUILTIN_OPTIONS.keys(),
+ *mesonbuild.coredata.BUILTIN_OPTIONS_PER_MACHINE.keys()
]))
# Check that `buildtype` table inside `Core options` matches how
@@ -3037,7 +3037,7 @@ int main(int argc, char **argv) {
test. Needs to be a unit test because it accesses Meson internals.
'''
testdir = os.path.join(self.common_test_dir, '154 reserved targets')
- targets = mesonbuild.coredata.forbidden_target_names
+ targets = mesonbuild.coredata.FORBIDDEN_TARGET_NAMES
# We don't actually define a target with this name
targets.pop('build.ninja')
# Remove this to avoid multiple entries with the same name