You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While backoff seems to be working on python 3.5-3.7, it seems that that it fails with python27 giving a weird exception, even for a simple use case:
@backoff.on_exception(backoff.expo,
requests.exceptions.RequestException,
max_time=60)
def test_delete_project(cl_admin, cl_normal, slug):
with pytest.raises(JIRAError) as ex:
assert cl_normal.delete_project(slug)
assert 'Not enough permissions to delete project' in str(ex.value) \
or str(ex.value).endswith('is not a Project, projectID or slug')
assert cl_admin.delete_project(slug)
This appears like you were calling test_delete_project() without any arguments.
There are unit tests which cover these basic cases and they are run on travis across all platforms. Additionally I just ran some basic tests on python 2.7 and I'm not seeing any issues. It looks like you're decorating the function correctly, but you didn't include how you were calling it so I'm wondering if there is something unusual on that side.
Since I can't reproduce this I am closing but please reopen if there is something I'm missing.
While backoff seems to be working on python 3.5-3.7, it seems that that it fails with python27 giving a weird exception, even for a simple use case:
Failure:
Update: I ended up using tenacity.retry which aparantly works with all python versiosns.
The text was updated successfully, but these errors were encountered: