Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/testing/storage.py @ 44026:a1ee825fc6c5
tests: fix a copy/paste name duplication in storage.py
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.
Differential Revision: https://phab.mercurial-scm.org/D7769
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Sat, 28 Dec 2019 02:11:51 -0500 |
parents | 9f70512ae2cf |
children | a5206e71c536 |
comparison
equal
deleted
inserted
replaced
44025:3216cabffd4a | 44026:a1ee825fc6c5 |
---|---|
962 f.rawdata(node1) | 962 f.rawdata(node1) |
963 | 963 |
964 with self.assertRaises(error.StorageError): | 964 with self.assertRaises(error.StorageError): |
965 f.rawdata(node1) | 965 f.rawdata(node1) |
966 | 966 |
967 def testbadnoderevisionraw(self): | 967 def testbadnoderevision(self): |
968 # Like above except we test read() first to isolate revision caching | 968 # Like above except we test read() first to isolate revision caching |
969 # behavior. | 969 # behavior. |
970 f = self._makefilefn() | 970 f = self._makefilefn() |
971 | 971 |
972 fulltext0 = b'foo\n' * 30 | 972 fulltext0 = b'foo\n' * 30 |