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

Obfuscated output with LANG=C #141

Closed
kiilerix opened this issue Aug 19, 2018 · 3 comments
Closed

Obfuscated output with LANG=C #141

kiilerix opened this issue Aug 19, 2018 · 3 comments

Comments

@kiilerix
Copy link

When running on Linux as
LANG=C py.test
it will output ansi sequences like literally '\x1b[36m' and unicode as literally '\u2015'.

I would expect it to work as usual, probably emitting ansi codes as usual. pytest-sugar itself should not try to emit its own utf8 characters but should fall back to some pure ascii.

(I wonder how setting LANG can influence that. It kind of would make sense if setting TERM to something incorrect ... but in that case it also should fall back to not emitting ansi codes.)

Using:
pytest==3.7.2
pytest-benchmark==3.1.1
pytest-localserver==0.4.1
pytest-runner==4.2
pytest-sugar==0.9.1

@blueyed
Copy link
Collaborator

blueyed commented Aug 29, 2018

Could not reproduce this.

@Teemu
Copy link
Owner

Teemu commented Oct 17, 2018

Is this with Docker?

@Teemu
Copy link
Owner

Teemu commented Oct 17, 2018

I guess this is a duplicate of #91?

@Teemu Teemu closed this as completed Oct 17, 2018
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

3 participants