Skip to content

Commit 716aad9

Browse files
committed
TEMP: Error on overriding TestCase.run()
1 parent 7a15841 commit 716aad9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: compass/run/serial.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ def _test_case_run_deprecated(test_case):
504504
# the run() method has been overridden. We need to give the user a
505505
# deprecation warning.
506506
actual_location = f'{actual_class.__module__}.{actual_class.__name__}'
507-
test_case.logger.warn(
507+
raise ValueError(
508508
f'\nWARNING: Overriding the TestCase.run() method is deprecated.\n'
509509
f' Please move the contents of\n'
510510
f' {actual_location}.run() \n'

0 commit comments

Comments
 (0)