From 1c2e2be9fbba200330ec84062eecf6662cbd5ee0 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Thu, 9 Feb 2023 08:04:42 -0700 Subject: test: adapt to latest pylint --- coverage/control.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'coverage/control.py') diff --git a/coverage/control.py b/coverage/control.py index 78e0c70e..730ba554 100644 --- a/coverage/control.py +++ b/coverage/control.py @@ -337,7 +337,7 @@ class Coverage(TConfigurable): # '[run] _crash' will raise an exception if the value is close by in # the call stack, for testing error handling. if self.config._crash and self.config._crash in short_stack(limit=4): - raise Exception(f"Crashing because called by {self.config._crash}") + raise RuntimeError(f"Crashing because called by {self.config._crash}") def _write_startup_debug(self) -> None: """Write out debug info at startup if needed.""" -- cgit v1.2.1