From 348e218d5b85dc1f497e43a8822ecc8ab73df65e Mon Sep 17 00:00:00 2001 From: David Pursehouse Date: Wed, 12 Feb 2020 11:36:14 +0900 Subject: 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 Reviewed-by: Mike Frysinger --- tests/test_project.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') 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): @staticmethod def touch(path): - with open(path, 'w') as f: + with open(path, 'w'): pass def assertExists(self, path, msg=None): -- cgit v1.2.3-54-g00ecf