Skip to content

Commit d2b5162

Browse files
committed
updates test `test_feature_reporter_on_failure_failure' to support python version 3.13
1 parent 7de7683 commit d2b5162

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/unit/reporters/test_feature_reporter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,8 +279,8 @@ def contrive_exception_info():
279279
call.reset("\n"),
280280
call.reset(" "),
281281
call.yellow(
282-
f'Failure: contrived failure\n File "{collapse_path(__file__)}", line 253, in contrive_exception_info\n ErrorStack()\n ~~~~~~~~~~^^\n'
283-
),
282+
f'Failure: contrived failure\n File "{collapse_path(__file__)}", line 253, in contrive_exception_info\n ErrorStack()\n'
283+
) if sys.version_info < (3, 13) else call.yellow(f'Failure: contrived failure\n File "{collapse_path(__file__)}", line 253, in contrive_exception_info\n ErrorStack()\n ~~~~~~~~~~^^\n'),
284284
call.reset(" "),
285285
call.bold_blue("\n Scenario:"),
286286
call.bold_blue(

0 commit comments

Comments
 (0)