Skip to content

Commit

Permalink
Fix a test that returned an exception instead of a result (#508)
Browse files Browse the repository at this point in the history
This PR fixes a test that uses `_task_returned` to return an exception
rather than a result.

The test works, but it's potentially confusing: there's no good reason
for it to be returning exception information instead of a result.
  • Loading branch information
mdickinson committed Oct 17, 2022
1 parent d0d1563 commit bca1f2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion traits_futures/tests/common_future_tests.py
Expand Up @@ -100,7 +100,7 @@ def record_states(event=None):
# Record initial, synthesize some state changes, then record final.
record_states()
future._task_started(None)
future._task_returned(self.fake_exception())
future._task_returned(23)
record_states()

# Check consistency.
Expand Down

0 comments on commit bca1f2d

Please sign in to comment.