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 trio.Process.returncode automatically update itself as needed #1514

Merged
merged 1 commit into from
May 12, 2020

Conversation

njsmith
Copy link
Member

@njsmith njsmith commented May 12, 2020

Fixes: #1315

@codecov
Copy link

codecov bot commented May 12, 2020

Codecov Report

Merging #1514 into master will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master    #1514   +/-   ##
=======================================
  Coverage   99.67%   99.67%           
=======================================
  Files         107      107           
  Lines       13254    13264   +10     
  Branches     1006     1006           
=======================================
+ Hits        13211    13221   +10     
  Misses         28       28           
  Partials       15       15           
Impacted Files Coverage Δ
trio/_subprocess.py 100.00% <100.00%> (ø)
trio/tests/test_subprocess.py 100.00% <100.00%> (ø)

@oremanj oremanj merged commit 098246a into python-trio:master May 12, 2020
njsmith added a commit to njsmith/trio that referenced this pull request May 23, 2020
python-triogh-1514 introduced a race condition in this test: now if the process
runs quickly enough, the returncode might have magically become
non-None before we check it.

Example failure: https://travis-ci.org/github/python-trio/trio/jobs/690291915

There are other tests that check the 'p.returncode is None' case (e.g.
test_auto_update_returncode), so we can just delete this.
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.

Process.__repr__ displays stale information
2 participants