diff --git a/tests/unit/reporters/test_feature_reporter.py b/tests/unit/reporters/test_feature_reporter.py index bc5cd96..0ceb57e 100644 --- a/tests/unit/reporters/test_feature_reporter.py +++ b/tests/unit/reporters/test_feature_reporter.py @@ -399,7 +399,7 @@ def contrive_special_syntax_disabled_error(): reporter.on_internal_runtime_error(context, error) - expects(sh.mock_calls).to.equal([call.bold_red(' File "~/projects/personal/sure/tests/unit/reporters/test_feature_reporter.py", line 392, in contrive_special_syntax_disabled_error\n raise InternalRuntimeError(context, RuntimeError("fail"))\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n')]) + expects(sh.mock_calls).to.equal([call.bold_red(f' File "{collapse_path(__file__)}", line 392, in contrive_special_syntax_disabled_error\n raise InternalRuntimeError(context, RuntimeError("fail"))\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n')]) exit.assert_called_once_with(exit_code(str(exc)))