From 6c18b09401ff3587987533b9004ccf6907e5f45f Mon Sep 17 00:00:00 2001 From: Xylar Asay-Davis Date: Sun, 18 Dec 2022 21:03:19 +0100 Subject: [PATCH] TEMP: Error on overriding TestCase.run() --- compass/run/serial.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compass/run/serial.py b/compass/run/serial.py index cfa97d1416..9001e5ecd4 100644 --- a/compass/run/serial.py +++ b/compass/run/serial.py @@ -504,7 +504,7 @@ def _test_case_run_deprecated(test_case): # the run() method has been overridden. We need to give the user a # deprecation warning. actual_location = f'{actual_class.__module__}.{actual_class.__name__}' - test_case.logger.warn( + raise ValueError( f'\nWARNING: Overriding the TestCase.run() method is deprecated.\n' f' Please move the contents of\n' f' {actual_location}.run() \n'