I'm trying to add a test module for image transfer:
https://gerrit.ovirt.org/c/112274/

The test use concurrent.futures module form the standard library.
This module is not available in python 2.7 but we don't support 2.7 in master
and it was EOL since Jan 2020.

The test fail when starting the suite:

[2020-11-18T16:17:10.526Z] ============================= test session
starts ==============================
[2020-11-18T16:17:10.526Z] platform linux2 -- Python 2.7.5,
pytest-4.6.9, py-1.9.0, pluggy-0.13.1 -- /usr/bin/python2
...
[2020-11-18T16:17:11.105Z] ==================================== ERRORS
====================================

[2020-11-18T16:17:11.105Z] ___ ERROR collecting
basic-suite-master/test-scenarios/008_image_transfer.py ___
[2020-11-18T16:17:11.105Z] ImportError while importing test module
'/home/jenkins/agent/workspace/ovirt-system-tests_standard-check-patch/ovirt-system-tests/basic-suite-master/test-scenarios/008_image_transfer.py'
[2020-11-18T16:17:11.105Z] Hint: make sure your test modules/packages
have valid Python names.
[2020-11-18T16:17:11.105Z] Traceback:
[2020-11-18T16:17:11.105Z]
../basic-suite-master/test-scenarios/008_image_transfer.py:22: in
<module>
[2020-11-18T16:17:11.105Z]     import concurrent.futures
[2020-11-18T16:17:11.105Z] E   ImportError: No module named concurrent.futures

Should we use pytest.skip() to skip this test when running on python 2?
Or just remove the python 2 build, I don't have any idea why we run master code
python 2.

Nir
_______________________________________________
Devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Privacy Statement: https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/[email protected]/message/X5WTBKPZOHQQVEXUGK5GQLIIVN65QWUD/

Reply via email to