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.
This commit is contained in:
Eli Schwartz 2023-02-01 16:09:59 -05:00
parent d6b81307f6
commit 4c55947c47
No known key found for this signature in database
GPG Key ID: CEB167EFB5722BD6
1 changed files with 1 additions and 1 deletions

View File

@ -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)