瀏覽代碼

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>
David Pursehouse 6 年之前
父節點
當前提交
348e218d5b
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      tests/test_project.py

+ 1 - 1
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):