Py3.7 unit test failure

Bug #1785293 reported by Corey Bryant
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-troveclient
New
Undecided
Unassigned

Bug Description

The following test is failing for Python 3.7:

======================================================================
FAIL: troveclient.tests.test_backups.BackupManagerTest.test_execution_list
troveclient.tests.test_backups.BackupManagerTest.test_execution_list
----------------------------------------------------------------------
_StringException: Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/troveclient/v1/backups.py", line 240, in mistral_execution_generator
    sort_dirs='desc')
  File "/usr/lib/python3/dist-packages/mock/mock.py", line 1062, in __call__
    return _mock_self._mock_call(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/mock/mock.py", line 1121, in _mock_call
    result = next(effect)
StopIteration

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/troveclient/tests/test_backups.py", line 253, in test_execution_list
    el = self.backups.execution_list("dummy", mistral_client, limit=2)
  File "/<<PKGBUILDDIR>>/troveclient/v1/backups.py", line 259, in execution_list
    return list(execution_list_generator())
  File "/<<PKGBUILDDIR>>/troveclient/v1/backups.py", line 250, in execution_list_generator
    for sexec in mistral_execution_generator():
RuntimeError: generator raised StopIteration

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.