test_project.py: Remove unused variable in 'with' statement

flake8 reports:

 F841 local variable 'f' is assigned to but never used

Change-Id: If808eb381ee44c7da71e6281615a06a6723cf945
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/254593
Tested-by: David Pursehouse <dpursehouse@collab.net>
Reviewed-by: Mike Frysinger <vapier@google.com>
This commit is contained in:
David Pursehouse 2020-02-12 11:36:14 +09:00
parent 4bbba7d627
commit 348e218d5b

View File

@ -163,7 +163,7 @@ class CopyLinkTestCase(unittest.TestCase):
@staticmethod @staticmethod
def touch(path): def touch(path):
with open(path, 'w') as f: with open(path, 'w'):
pass pass
def assertExists(self, path, msg=None): def assertExists(self, path, msg=None):