diff options
author | Brian Gesiak <modocache@gmail.com> | 2016-10-10 01:19:27 +0000 |
---|---|---|
committer | Brian Gesiak <modocache@gmail.com> | 2016-10-10 01:19:27 +0000 |
commit | b25861c31ea75e3ef5a5853bcf014f1507066d89 (patch) | |
tree | 765510efb0da96b0c669433032e59b714eca9d9e | |
parent | f35afa2cfcd0c11fcdd160c365e872e1913fb1e7 (diff) | |
download | bcm5719-llvm-b25861c31ea75e3ef5a5853bcf014f1507066d89.tar.gz bcm5719-llvm-b25861c31ea75e3ef5a5853bcf014f1507066d89.zip |
[lit] Fix undefined symbol ArgumentError
Summary:
`ArgumentError` is not defined by the Python standard library.
Executing this line of code would throw a exception, but not the
intended one. It would throw a `NameError` exception, since `ArgumentError`
is undefined.
Use `ValueError` instead, which is defined by the Python standard
library.
Reviewers: echristo, delcypher, beanz, ddunbar
Subscribers: llvm-commits, mehdi_amini
Differential Revision: https://reviews.llvm.org/D25410
llvm-svn: 283708
-rw-r--r-- | llvm/utils/lit/lit/Test.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/utils/lit/lit/Test.py b/llvm/utils/lit/lit/Test.py index 9c9c47d6321..657a7e8140d 100644 --- a/llvm/utils/lit/lit/Test.py +++ b/llvm/utils/lit/lit/Test.py @@ -189,9 +189,9 @@ class Test: def setResult(self, result): if self.result is not None: - raise ArgumentError("test result already set") + raise ValueError("test result already set") if not isinstance(result, Result): - raise ArgumentError("unexpected result type") + raise ValueError("unexpected result type") self.result = result |