diff options
author | Tres Seaver <tseaver@palladion.com> | 2019-07-23 21:39:06 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-23 21:39:06 -0400 |
commit | 1b42d94cec7f384ea9ea5bc790a44aeb009777cf (patch) | |
tree | 55226765bb8db3f1d560a03885ef47f45d0a4f7d /tests | |
parent | f6cda97ea544942c6dd92aa618b092904868ab13 (diff) | |
download | python-api-core-1b42d94cec7f384ea9ea5bc790a44aeb009777cf.tar.gz |
Forward 'timeout' arg from 'exception' to '_blocking_poll'. (#8735)
Closes #8733.
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__() |