aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2021-10-19 19:24:55 -0400
committerEli Schwartz <eschwartz@archlinux.org>2021-10-26 20:53:43 -0400
commit67792fc223daac88dcc4d5f5e981f3724b87e9b4 (patch)
treea8821de3c77597397a5968043ff5f8fa5087227d
parente0b86a8d381a9b1b5910e0bbbfa6312324184610 (diff)
downloadmeson-67792fc223daac88dcc4d5f5e981f3724b87e9b4.zip
meson-67792fc223daac88dcc4d5f5e981f3724b87e9b4.tar.gz
meson-67792fc223daac88dcc4d5f5e981f3724b87e9b4.tar.bz2
do not save unused variable
Constructing a PackageDefinition is enough to assert that it raises an error.
-rw-r--r--unittests/allplatformstests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/unittests/allplatformstests.py b/unittests/allplatformstests.py
index c7fe2cb..bae0403 100644
--- a/unittests/allplatformstests.py
+++ b/unittests/allplatformstests.py
@@ -3598,7 +3598,7 @@ class AllPlatformTests(BasePlatformTests):
filename = foo/real.wrap
'''))
with self.assertRaisesRegex(WrapException, 'wrap-redirect filename must be in the form foo/subprojects/bar.wrap'):
- wrap = PackageDefinition(redirect_wrap)
+ PackageDefinition(redirect_wrap)
# Correct redirect
with open(redirect_wrap, 'w', encoding='utf-8') as f: