File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ flake8-commas==2.0.0 # Require silicon valley commas
1313flake8-quotes == 3.2.0 # Require single quotes
1414flake8 == 3.8.3 # Lint
1515freezegun == 1.0.0 # Freeze time in tests
16+ func-timeout 4.3.5
1617isort == 5.5.4 # Lint imports
1718keyring == 21.4.0
1819mypy == 0.782 # Type checking
@@ -29,7 +30,6 @@ requests-mock-flask==2020.9.25.0
2930sphinx-autodoc-typehints == 1.11.0
3031sphinx_paramlinks == 0.4.2
3132sphinxcontrib-spelling == 5.4.0
32- timeout-decorator == 0.4.1 # Decorate functions to time out.
3333twine == 3.2.0
3434vulture == 2.1
3535vws-python == 2020.9.28.0
Original file line number Diff line number Diff line change 99from time import sleep
1010
1111import pytest
12- import timeout_decorator
12+ from func_timeout import func_set_timeout
1313from vws import VWS , CloudRecoService
1414from vws .exceptions .vws_exceptions import Fail
1515
2020LOGGER .setLevel (logging .DEBUG )
2121
2222
23- @timeout_decorator . timeout ( seconds = 500 )
23+ @func_set_timeout ( timeout = 500 )
2424def _wait_for_image_numbers (
2525 vws_client : VWS ,
2626 active_images : int ,
@@ -47,8 +47,8 @@ def _wait_for_image_numbers(
4747 processing_images: The expected number of processing images.
4848
4949 Raises:
50- TimeoutError : The numbers of images in various categories do not match
51- within the time limit.
50+ func_timeout.exceptions.FunctionTimedOut : The numbers of images in
51+ various categories do not match within the time limit.
5252 """
5353 requirements = {
5454 'active_images' : active_images ,
You can’t perform that action at this time.
0 commit comments