aboutsummaryrefslogtreecommitdiff
path: root/run_unittests.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2020-12-08 10:33:11 -0800
committerDylan Baker <dylan@pnwbakers.com>2021-01-11 11:15:06 -0800
commit4580433b8255b9f69dfbd39a28c21bc1ec785bcf (patch)
tree57dd738f1d2ebe943f4ae1266d6f8551d737535f /run_unittests.py
parent7248a64750fc0748f7d86b65e03172f00b515690 (diff)
downloadmeson-4580433b8255b9f69dfbd39a28c21bc1ec785bcf.zip
meson-4580433b8255b9f69dfbd39a28c21bc1ec785bcf.tar.gz
meson-4580433b8255b9f69dfbd39a28c21bc1ec785bcf.tar.bz2
rename cflags_mapping to CFLAGS_MAPPING
This is PEP8 convention for a const variable. Also, make the type Mapping, which doesn't have mutation methods. This means mypy will warn us if someone tries to change this.
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-xrun_unittests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/run_unittests.py b/run_unittests.py
index 5118b00..2f102b4 100755
--- a/run_unittests.py
+++ b/run_unittests.py
@@ -9347,7 +9347,7 @@ def unset_envs():
# For unit tests we must fully control all command lines
# so that there are no unexpected changes coming from the
# environment, for example when doing a package build.
- varnames = ['CPPFLAGS', 'LDFLAGS'] + list(mesonbuild.compilers.compilers.cflags_mapping.values())
+ varnames = ['CPPFLAGS', 'LDFLAGS'] + list(mesonbuild.compilers.compilers.CFLAGS_MAPPING.values())
for v in varnames:
if v in os.environ:
del os.environ[v]