tests: drop unused local variable assignments in remotefilelog
authorMatt Harbison <matt_harbison@yahoo.com>
Fri, 27 Dec 2019 18:50:40 -0500
changeset 43990 37458d8b0c1e
parent 43989 de358da72eb1
child 43991 e3ce3731d621
tests: drop unused local variable assignments in remotefilelog Flagged by PyCharm. Differential Revision: https://phab.mercurial-scm.org/D7758
tests/test-remotefilelog-datapack.py
tests/test-remotefilelog-histpack.py
--- a/tests/test-remotefilelog-datapack.py	Fri Dec 27 18:43:18 2019 -0500
+++ b/tests/test-remotefilelog-datapack.py	Fri Dec 27 18:50:40 2019 -0500
@@ -237,7 +237,7 @@
             f.write(raw)
 
         try:
-            pack = self.datapackreader(pack.path)
+            self.datapackreader(pack.path)
             self.assertTrue(False, "bad version number should have thrown")
         except RuntimeError:
             pass
--- a/tests/test-remotefilelog-histpack.py	Fri Dec 27 18:43:18 2019 -0500
+++ b/tests/test-remotefilelog-histpack.py	Fri Dec 27 18:50:40 2019 -0500
@@ -252,7 +252,7 @@
             f.write(raw)
 
         try:
-            pack = historypack.historypack(pack.path)
+            historypack.historypack(pack.path)
             self.assertTrue(False, "bad version number should have thrown")
         except RuntimeError:
             pass