aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2023-02-01 16:09:59 -0500
committerEli Schwartz <eschwartz@archlinux.org>2023-02-01 17:01:31 -0500
commit4c55947c47927e3694e2fd41a3987a717692faca (patch)
treed873edbae2f91c4d88c11f9aee83bcbb3e7a6b6e /mesonbuild
parentd6b81307f66d4d20f7d2c9baac74a8449cad640a (diff)
downloadmeson-4c55947c47927e3694e2fd41a3987a717692faca.zip
meson-4c55947c47927e3694e2fd41a3987a717692faca.tar.gz
meson-4c55947c47927e3694e2fd41a3987a717692faca.tar.bz2
pylint 2.16: raise a more intentional exception
Include a frivolous error message too. We never see it, but if someone reads the code and wonders why on *earth* there's a DSL function to raise a RuntimeError, the message string will clue them in.
Diffstat (limited to 'mesonbuild')
-rw-r--r--mesonbuild/interpreter/interpreter.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/interpreter/interpreter.py b/mesonbuild/interpreter/interpreter.py
index e57dc7a..802c862 100644
--- a/mesonbuild/interpreter/interpreter.py
+++ b/mesonbuild/interpreter/interpreter.py
@@ -1393,7 +1393,7 @@ class Interpreter(InterpreterBase, HoldableObject):
@noKwargs
@noPosargs
def func_exception(self, node, args, kwargs):
- raise Exception()
+ raise RuntimeError('unit test traceback :)')
def add_languages(self, args: T.List[str], required: bool, for_machine: MachineChoice) -> bool:
success = self.add_languages_for(args, required, for_machine)