Public bug reported: test-requirements.txt requires ddt>=1.2.1 ; however, 17.2.0 includes a test backport (cinder/tests/unit/volume/flows/test_create_volume_flow.py) that uses a module name that doesn't exist in DDT until 1.4.0 (https://github.com/datadriventests/ddt/commit/6bf51b5d7887049eda580932643a5408ca0f5e3f)
Running the unit tests results in the following traceback: ========================= Failures during discovery ========================= --- import errors --- Failed to import test module: cinder.tests.unit.volume.flows.test_create_volume_flow Traceback (most recent call last): File "/usr/lib/python3.8/unittest/loader.py", line 436, in _find_test_path module = self._get_module_from_name(name) File "/usr/lib/python3.8/unittest/loader.py", line 377, in _get_module_from_name __import__(name) File "/build/cinder-17.2.0/cinder/tests/unit/volume/flows/test_create_volume_flow.py", line 1258, in <module> @ddt.ddt(testNameFormat=ddt.TestNameFormat.INDEX_ONLY) AttributeError: module 'ddt' has no attribute 'TestNameFormat' ** Affects: cinder Importance: Undecided Status: New ** Affects: cloud-archive Importance: Undecided Status: New ** Affects: cloud-archive/victoria Importance: Undecided Status: New ** Also affects: cinder (Ubuntu) Importance: Undecided Status: New ** No longer affects: cinder (Ubuntu) ** Also affects: cloud-archive Importance: Undecided Status: New ** Also affects: cloud-archive/victoria Importance: Undecided Status: New ** Description changed: test-requirements.txt requires ddt>=1.2.1 ; however, 17.2.0 includes a test backport (cinder/tests/unit/volume/flows/test_create_volume_flow.py) that uses a module name that doesn't exist in DDT until 1.4.0 (https://github.com/datadriventests/ddt/commit/6bf51b5d7887049eda580932643a5408ca0f5e3f) + + Running the unit tests results in the following traceback: + + ========================= + Failures during discovery + ========================= + --- import errors --- + Failed to import test module: cinder.tests.unit.volume.flows.test_create_volume_flow + Traceback (most recent call last): + File "/usr/lib/python3.8/unittest/loader.py", line 436, in _find_test_path + module = self._get_module_from_name(name) + File "/usr/lib/python3.8/unittest/loader.py", line 377, in _get_module_from_name + __import__(name) + File "/build/cinder-17.2.0/cinder/tests/unit/volume/flows/test_create_volume_flow.py", line 1258, in <module> + @ddt.ddt(testNameFormat=ddt.TestNameFormat.INDEX_ONLY) + AttributeError: module 'ddt' has no attribute 'TestNameFormat' -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1948934 Title: Backported test requires newer ddt than included in test- requirements.txt To manage notifications about this bug go to: https://bugs.launchpad.net/cinder/+bug/1948934/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs