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

Combined PR to fix CI #434

Merged
merged 6 commits into from
Feb 13, 2018
Merged

Combined PR to fix CI #434

merged 6 commits into from
Feb 13, 2018

Conversation

njsmith
Copy link
Member

@njsmith njsmith commented Feb 13, 2018

We currently have 3 independent problems breaking CI, so we need to
fix them all at once to unwedge things. This PR fixes:

On Python 3.6:

>>> RuntimeError("oops")
RuntimeError('oops',)

On Python 3.7-dev:

>>> RuntimeError("oops")
RuntimeError('oops')
We want to test how Trio handles a function decorated with
@asyncio.coroutine. Previously we did this by using asyncio.sleep. But
in Python 3.7, asyncio.sleep has become an async def function instead,
so the test failed. Now we define our own function decorated with
@asyncio.coroutine and test that, instead of making assumptions about
the stdlib.
We were calling 'exit 0' to skip the tests... inside subshell
parentheses (), so it was only exiting the subshell, not the overall
script. Whoops. Fix that.
@codecov
Copy link

codecov bot commented Feb 13, 2018

Codecov Report

Merging #434 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master    #434      +/-   ##
=========================================
+ Coverage    99.2%   99.2%   +<.01%     
=========================================
  Files          89      89              
  Lines       10332   10333       +1     
  Branches      719     719              
=========================================
+ Hits        10250   10251       +1     
  Misses         63      63              
  Partials       19      19
Impacted Files Coverage Δ
trio/_core/_run.py 100% <ø> (ø) ⬆️
trio/_core/tests/test_run.py 100% <100%> (ø) ⬆️
trio/_core/tests/test_result.py 100% <100%> (ø) ⬆️

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 3170205...614b5e3. Read the comment docs.

@pquentin pquentin merged commit 7903a0f into python-trio:master Feb 13, 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

Successfully merging this pull request may close these issues.

2 participants