Skip to content

Commit

Permalink
Fix doctest example with exception
Browse files Browse the repository at this point in the history
Python traceback contains details that are likely to change depending
on the execution environment, these details can be ignored.
While the correct exception type (AssertionError) remains unchanged.
  • Loading branch information
radeksm committed Jan 13, 2024
1 parent 19d1b55 commit 4f56a9b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions eventlet/event.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,8 @@ def send(self, result=None, exc=None):
It is an error to call :meth:`send` multiple times on the same event.
>>> evt.send('whoops')
>>> evt.send('whoops') # doctest: +IGNORE_EXCEPTION_DETAIL
Traceback (most recent call last):
...
AssertionError: Trying to re-send() an already-triggered event.
Use :meth:`reset` between :meth:`send` s to reuse an event object.
Expand Down

0 comments on commit 4f56a9b

Please sign in to comment.