tests/sys/opencrypto: use python3
python2 will be EOL soon
Differential D25682
tests/sys/opencrypto: use python3 asomers on Jul 16 2020, 3:10 AM. Authored by Tags None Referenced Files
Details tests/sys/opencrypto: use python3 python2 will be EOL soon
Diff Detail
Event TimelineComment Actions Looks good to me. I'm adding ngie as they did the port to Python 3. I have not run and verified that this works under Python 3, but fully support the move to 3. It does look like some changes were made in the conversion that need to be addressed. Not all `` were converted to repr's, in the case of some of the unittest.skipIf. '%s' % strvar != '%s' % repr(strvar) in that if strvar has escape chars or other non-printables, they will corrupt the terminal or other damage whereas repr prevents that change. Comment Actions This should work, for sure. The removing from __future__ import print_function wasn't absolutely required, but it does clean up some of the move from python 2 to 3. |