diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit/future/test_polling.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/unit/future/test_polling.py b/tests/unit/future/test_polling.py index 3e19d07..c67de06 100644 --- a/tests/unit/future/test_polling.py +++ b/tests/unit/future/test_polling.py @@ -119,6 +119,12 @@ def test_result_timeout(): future.result(timeout=1) +def test_exception_timeout(): + future = PollingFutureImplTimeout() + with pytest.raises(concurrent.futures.TimeoutError): + future.exception(timeout=1) + + class PollingFutureImplTransient(PollingFutureImplWithPoll): def __init__(self, errors): super(PollingFutureImplTransient, self).__init__() |