summaryrefslogtreecommitdiffstats
path: root/tests/test_project.py
diff options
context:
space:
mode:
authorDavid Pursehouse <dpursehouse@collab.net>2020-02-12 11:36:14 +0900
committerDavid Pursehouse <dpursehouse@collab.net>2020-02-12 02:56:32 +0000
commit348e218d5b85dc1f497e43a8822ecc8ab73df65e (patch)
tree4240d60129eb2a618e9a131fa1782be3052dc40a /tests/test_project.py
parent4bbba7d627d9d801f9e3ab50a864a0d2b70bb3e7 (diff)
downloadgit-repo-348e218d5b85dc1f497e43a8822ecc8ab73df65e.tar.gz
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>
Diffstat (limited to 'tests/test_project.py')
-rw-r--r--tests/test_project.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_project.py b/tests/test_project.py
index bde38c47..b416386e 100644
--- a/tests/test_project.py
+++ b/tests/test_project.py
@@ -163,7 +163,7 @@ class CopyLinkTestCase(unittest.TestCase):
163 163
164 @staticmethod 164 @staticmethod
165 def touch(path): 165 def touch(path):
166 with open(path, 'w') as f: 166 with open(path, 'w'):
167 pass 167 pass
168 168
169 def assertExists(self, path, msg=None): 169 def assertExists(self, path, msg=None):