D7769: tests: fix a copy/paste name duplication in storage.py

mharbison72 (Matt Harbison) phabricator at mercurial-scm.org
Sat Dec 28 16:42:52 UTC 2019


mharbison72 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  Flagged by PyCharm as a redeclared name without usage, because the name matches
  the function immediately preceding it.  But since this differs by doing regular
  reads instead of raw reads, I assume we still want it.  But I don't see either
  function being called anywhere.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D7769

AFFECTED FILES
  mercurial/testing/storage.py

CHANGE DETAILS

diff --git a/mercurial/testing/storage.py b/mercurial/testing/storage.py
--- a/mercurial/testing/storage.py
+++ b/mercurial/testing/storage.py
@@ -964,7 +964,7 @@
         with self.assertRaises(error.StorageError):
             f.rawdata(node1)
 
-    def testbadnoderevisionraw(self):
+    def testbadnoderevision(self):
         # Like above except we test read() first to isolate revision caching
         # behavior.
         f = self._makefilefn()



To: mharbison72, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list