--- a/mercurial/testing/storage.py Tue Oct 02 17:28:54 2018 -0700
+++ b/mercurial/testing/storage.py Tue Oct 02 17:34:34 2018 -0700
@@ -1175,14 +1175,9 @@
self.assertEqual(list(f.revs()), [0, 1, 2])
self.assertEqual(f.read(node0), b'foo\n' * 30)
+ self.assertEqual(f.read(node2), b'foo\n' * 32)
- # TODO revlog can't resolve revision after censor. Probably due to a
- # cache on the revlog instance.
- with self.assertRaises(error.StorageError):
- self.assertEqual(f.read(node2), b'foo\n' * 32)
-
- # TODO should raise CensoredNodeError, but fallout from above prevents.
- with self.assertRaises(error.StorageError):
+ with self.assertRaises(error.CensoredNodeError):
f.read(node1)
def testgetstrippointnoparents(self):