From bca1f2dc8724ff059dae78991ce1daef08bbe7b4 Mon Sep 17 00:00:00 2001 From: Mark Dickinson Date: Mon, 17 Oct 2022 09:37:02 +0100 Subject: [PATCH] Fix a test that returned an exception instead of a result (#508) 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. --- traits_futures/tests/common_future_tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/traits_futures/tests/common_future_tests.py b/traits_futures/tests/common_future_tests.py index 625fb39c..c49e4d54 100644 --- a/traits_futures/tests/common_future_tests.py +++ b/traits_futures/tests/common_future_tests.py @@ -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.