robotframework/PythonRemoteServer

Python 3 support

Closed this issue · 4 comments

This would be especially handy because Robot Framework itself doesn't yet support Python 3. Most likely we will target Python 3.3 or newer and will at the same time drop support from versions prior to Python/Jython 2.5.

Pabot will not support Python 3 before this is done

mkorpela/pabot#54

invalid syntax (robotremoteserver.py, line 103)

I have tried to implement Python3 support but 24 acceptance tests are failing with Python3 and I have not yet figured out why. With Python2.7 atests and utests goes with 100% success.

Changes:
https://github.com/molsky/PythonRemoteServer/tree/python2-3

screen shot 2016-08-17 at 11 09 55 2

screen shot 2016-08-17 at 11 43 46 2

Hi @molsky
Great work :) I took your approach a bit further:
https://github.com/userzimmermann/PythonRemoteServer/tree/python2-3

Only 3 failing atests left with python3, but all due to different unicode string display in comparison.
@pekkaklarck Those well known Expected error 'Hyv\xe4' but got 'Hyvä'. like problems from my earlier robotframework-python3 fork... ;) How did you unify those tests in robotframework 3.0?

BTW: Is the six dependency ok or better replace with custom definitions?

The code should now support Python 3. Acceptance tests run successfully with Python 3.3-3.6 both on Linux and Windows and also with PyPy 3 on Linux.

Tasks still todo:

  • Go through docs. Should update them to mention Python 3 is supported and also that we support PyPy.
  • Update setup.py. Need to add correct classifiers there.