validations-libs unit tests no longer support py27

Bug #1956751 reported by mathieu bultel
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
New
Undecided
mathieu bultel

Bug Description

For old release like train on centos7 validations-libs unit test no longer support python 2.7
There is few adjustment to do in the tests to make it work again.

Revision history for this message
mathieu bultel (mat-bultel) wrote :

For example configparser should be imported via six.moves:
sed -i 's/configparser/ConfigParser/' validations_libs/utils.py
sed -i 's/configparser/ConfigParser/' validations_libs/tests/test_utils.py

Changed in tripleo:
assignee: nobody → mathieu bultel (mat-bultel)
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.