do not save unused variable

Constructing a PackageDefinition is enough to assert that it raises an
error.
pull/9415/head
Eli Schwartz 3 years ago
parent e0b86a8d38
commit 67792fc223
No known key found for this signature in database
GPG Key ID: CEB167EFB5722BD6
  1. 2
      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:

Loading…
Cancel
Save