[lit] Throw in unimplemented method (NFC)
authorChris Bieneman <beanz@apple.com>
Mon, 3 Oct 2016 04:48:22 +0000 (04:48 +0000)
committerChris Bieneman <beanz@apple.com>
Mon, 3 Oct 2016 04:48:22 +0000 (04:48 +0000)
commit7fac28f7ac0bfbabf889ddccec0523372dfd6a77
treefb3535e037ff11e91246fcf78517b79e5af350d3
parentdec815c8ecf041dfe6ef1c19d1217033bda8d54e
[lit] Throw in unimplemented method (NFC)

Summary:
lit's `OneCommandFileTest` class implements an abstract method that
raises if called. However, it raises by referencing an undefined
symbol. Instead, raise explicitly by throwing a `NotImplementedError`.
This is clearer, and appeases Python linters.

Patch By Brian Gesiak!

Reviewers: ddunbar, echristo, beanz

Subscribers: llvm-commits, mehdi_amini

Differential Revision: https://reviews.llvm.org/D25170

llvm-svn: 283090
llvm/utils/lit/lit/formats/base.py