Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python 3 str/bytes errors with certain output formats #118

Closed
prophile opened this issue Apr 16, 2015 · 0 comments
Closed

Python 3 str/bytes errors with certain output formats #118

prophile opened this issue Apr 16, 2015 · 0 comments

Comments

@prophile
Copy link
Contributor

In run.py, there is a sys.stdout.write with a formatter.render() call as the argument. This is fine under Python 2, but under Python 3 some formatters return instances of str here, some return bytes. Those that return bytes cause errors.

In particular, the XUnit and YAML formatters return bytes objects.

@carlio carlio closed this as completed in b9645e3 Apr 18, 2015
carlio added a commit that referenced this issue Apr 18, 2015
Fix #118: Always return `str` objects from formatter.render
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant