Skip to content

Commit

Permalink
πŸ”Š Tweak error message
Browse files Browse the repository at this point in the history
  • Loading branch information
tiangolo committed Dec 3, 2023
1 parent 0ffb86d commit af33c65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion devtools/pytest_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def insert_assert(value: Any) -> int:
'insert_assert() was unable to find the frame from which it was called.\n\n'
"Sometimes this happens when there's an assert statement with a an error "
'message with multiple lines, like: '
"\n\nassert foo == bar, (\n 'foo should be\n equal to bar'\n)\n\n"
"\n\nassert foo == bar, (\n 'foo should be '\n 'equal to bar'\n)\n\n"
'You can try commenting out that assert statement while you run '
'insert_assert() and then uncommenting it afterwards.\n\n'
f'insert_assert was called with:\n{python_code}'
Expand Down

0 comments on commit af33c65

Please sign in to comment.