aboutsummaryrefslogtreecommitdiff
path: root/run_unittests.py
diff options
context:
space:
mode:
authorJon Turney <jon.turney@dronecode.org.uk>2018-03-03 21:20:00 +0000
committerJon Turney <jon.turney@dronecode.org.uk>2018-03-03 21:36:37 +0000
commit8958529a2596c73bdb3cb599ced5f2c440359b5a (patch)
tree5578a0bd1316ce0d266a3f41c0ec7a56e4ac4312 /run_unittests.py
parent2f6ed470771858d96d435131e2624fb144464973 (diff)
downloadmeson-8958529a2596c73bdb3cb599ced5f2c440359b5a.zip
meson-8958529a2596c73bdb3cb599ced5f2c440359b5a.tar.gz
meson-8958529a2596c73bdb3cb599ced5f2c440359b5a.tar.bz2
Fix flake8 'variable assigned value but unused' reports
$ flake8 | grep -E 'F841' ./run_unittests.py:1987:13: F841 local variable 'objc' is assigned to but never used ./run_unittests.py:1988:13: F841 local variable 'objcpp' is assigned to but never used ./mesonbuild/minit.py:272:5: F841 local variable 'uppercase_token' is assigned to but never used ./mesonbuild/minit.py:307:5: F841 local variable 'uppercase_token' is assigned to but never used ./mesonbuild/modules/unstable_icestorm.py:36:9: F841 local variable 'result' is assigned to but never used ./mesonbuild/modules/unstable_icestorm.py:78:9: F841 local variable 'up_target' is assigned to but never used ./mesonbuild/modules/unstable_icestorm.py:81:9: F841 local variable 'time_target' is assigned to but never used ./msi/createmsi.py:226:17: F841 local variable 'file_source' is assigned to but never used
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-xrun_unittests.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/run_unittests.py b/run_unittests.py
index 4eb5d4c..3e5da22 100755
--- a/run_unittests.py
+++ b/run_unittests.py
@@ -1984,8 +1984,8 @@ class FailureTests(BasePlatformTests):
env = Environment('', self.builddir, self.meson_command,
get_fake_options(self.prefix), [])
try:
- objc = env.detect_objc_compiler(False)
- objcpp = env.detect_objcpp_compiler(False)
+ env.detect_objc_compiler(False)
+ env.detect_objcpp_compiler(False)
except EnvironmentException:
code = "add_languages('objc')\nadd_languages('objcpp')"
self.assertMesonRaises(code, "Unknown compiler")