Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test_timeout_kwargs_with_initial_timeout_none #69

Open
jayvdb opened this issue Feb 23, 2021 · 1 comment
Open

test_timeout_kwargs_with_initial_timeout_none #69

jayvdb opened this issue Feb 23, 2021 · 1 comment

Comments

@jayvdb
Copy link

jayvdb commented Feb 23, 2021

I am packaging timeout-decorator for openSUSE, and found that the two test_timeout_kwargs_with_initial_timeout_none tests are both failing.

[  112s] =================================== FAILURES ===================================
[  112s] _____________ test_timeout_kwargs_with_initial_timeout_none[False] _____________
[  112s] 
[  112s] use_signals = False
[  112s] 
[  112s]     def test_timeout_kwargs_with_initial_timeout_none(use_signals):
[  112s]         @timeout(use_signals=use_signals)
[  112s]         def f():
[  112s]             time.sleep(2)
[  112s]         with pytest.raises(TimeoutError):
[  112s] >           f(timeout=1)
[  112s] E           TypeError: f() got an unexpected keyword argument 'timeout'
[  112s] 
[  112s] test_timeout_decorator.py:53: TypeError
[  112s] _____________ test_timeout_kwargs_with_initial_timeout_none[True] ______________
[  112s] 
[  112s] use_signals = True
[  112s] 
[  112s]     def test_timeout_kwargs_with_initial_timeout_none(use_signals):
[  112s]         @timeout(use_signals=use_signals)
[  112s]         def f():
[  112s]             time.sleep(2)
[  112s]         with pytest.raises(TimeoutError):
[  112s] >           f(timeout=1)
[  112s] E           TypeError: f() got an unexpected keyword argument 'timeout'
[  112s] 
[  112s] test_timeout_decorator.py:53: TypeError
[  112s] =========================== short test summary info ============================
[  112s] FAILED test_timeout_decorator.py::test_timeout_kwargs_with_initial_timeout_none[False]
[  112s] FAILED test_timeout_decorator.py::test_timeout_kwargs_with_initial_timeout_none[True]

packaging project at https://build.opensuse.org/package/show/home:jayvdb:py-submit/python-timeout-decorator

@dirkmueller
Copy link

This appears to be fixed in the 0.5.0 release that got uploaded to pypi (although there is no corresponding git tag in this repository here)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants