1

I'm using xml test runner for generating a xml report after unit tests:

https://pypi.python.org/pypi/XmlTestRunner

However, I just an error:

SyntaxError ( ('future feature unicode_literals is not defined'

If you take a look at the script you can see the line:

from __future__ import unicode_literals

What is the problem with the unicode_literals import?

1 Answer 1

2

You appear to be using a version of Python older than 2.6.0. The unicode_literals future import first appeared in 2.6.0.

Upgrade your Python to a more recent version if you want the script to run.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.