I've asked this question before (Force nose2 to use Python 2.7 instead of Python 3.5) but didn't get an answer, and thought I might give it another try. I'm trying to run tests using the command
nose2
but I'm getting an error that ends with
SyntaxError: Missing parentheses in call to 'print'
It seems like nose2 assumes that the code is in Python 3, whereas in this case it is in Python 2. Is there any way to make nose2
work on Python 2 code? (For example by changing its configuration)?