[PATCH] D65751: [LNT] Add support for v2 fmt in test data library

Thomas Preud'homme via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Sep 15 14:17:55 PDT 2019


thopre marked an inline comment as done.
thopre added inline comments.


================
Comment at: lnt/testing/__init__.py:52
         """
+        assert self.report_version <= 2
+
----------------
cmatthews wrote:
> thopre wrote:
> > thopre wrote:
> > > cmatthews wrote:
> > > > Could you add a comment or assertion text explaining why this check is needed.
> > > Are these comments appropriate?
> > Ping?
>  assert self.report_version <= 2, "This library only supports v2 and newer."
> 
> When someone hits an assertion, it is nice to see the assertion message, instead of having to navigate to the code.
How about now?


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D65751/new/

https://reviews.llvm.org/D65751





More information about the llvm-commits mailing list