This gist documents the steps that were taken to drop Python 2 support in Pinax Ratings. It is hoped that this will serve as a primer for dropping Python 2 support in other apps in the Pinax project.
Initially, when the app's test suite was run with tox
the system was found to exit with code 1
(signalling abnormal termination) for tests run in the test environment named py27-django111
. This was due to syntax errors being raised when Python 2 incompatible test dependencies are run on Python 2.
The syntax errors were raised because of the following incompatibilities: