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

Make stdout/stderr wrappers identify themselves as not being a tty #929

Merged
merged 1 commit into from
Oct 28, 2019

Conversation

michaelboulton
Copy link
Contributor

Calling isatty() on sys.stderr/sys.stdout inside locust will currently raise an exception (AttributeError: 'StdOutWrapper' object has no attribute 'isatty'), this PR just makes it so that it definitely identifies itself as not being connected to a tty.

@codecov
Copy link

codecov bot commented Dec 9, 2018

Codecov Report

Merging #929 into master will decrease coverage by 0.04%.
The diff coverage is 50%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master    #929      +/-   ##
=========================================
- Coverage   66.55%   66.5%   -0.05%     
=========================================
  Files          14      14              
  Lines        1438    1442       +4     
  Branches      226     226              
=========================================
+ Hits          957     959       +2     
- Misses        430     432       +2     
  Partials       51      51
Impacted Files Coverage Δ
locust/log.py 63.88% <50%> (-1.74%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0a155ed...6e4194a. Read the comment docs.

@cyberw cyberw merged commit 6f08db3 into locustio:master Oct 28, 2019
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

Successfully merging this pull request may close these issues.

2 participants