From 67792fc223daac88dcc4d5f5e981f3724b87e9b4 Mon Sep 17 00:00:00 2001
From: Eli Schwartz <eschwartz@archlinux.org>
Date: Tue, 19 Oct 2021 19:24:55 -0400
Subject: [PATCH] do not save unused variable

Constructing a PackageDefinition is enough to assert that it raises an
error.
---
 unittests/allplatformstests.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/unittests/allplatformstests.py b/unittests/allplatformstests.py
index c7fe2cb29..bae04033a 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: