Skip to content

Don't use asyncio.sleep as a function that waits on an asyncio.Future - #683

Merged
pquentin merged 2 commits into
python-trio:masterfrom
njsmith:fix-ci-2
Sep 26, 2018
Merged

pquentin merged 2 commits into
python-trio:masterfrom
njsmith:fix-ci-2

Conversation

@njsmith

@njsmith njsmith commented Sep 26, 2018

Copy link
Copy Markdown
Member

In this PR:

python/cpython#9415

asyncio.sleep switched to requiring a running asyncio event loop. This
is all very sensible, but broke our test that checks what happens when
some accidentally yields an asyncio.Future to the Trio run loop.
Switch the test to waiting on a Future directly.

In this PR:

  python/cpython#9415

asyncio.sleep switched to requiring a running asyncio event loop. This
is all very sensible, but broke our test that checks what happens when
some accidentally yields an asyncio.Future to the Trio run loop.
Switch the test to waiting on a Future directly.
@njsmith

njsmith commented Sep 26, 2018

Copy link
Copy Markdown
Member Author

I guess I'll probably also have to bump the pickleshare pin here to pick up ipython/pickleshare#28 ...

@codecov

codecov Bot commented Sep 26, 2018 •

Copy link
Copy Markdown

Codecov Report

Merging #683 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #683   +/-   ##
=======================================
  Coverage   83.77%   83.77%           
=======================================
  Files          94       94           
  Lines       13046    13046           
  Branches      788      788           
=======================================
  Hits        10929    10929           
  Misses       2096     2096           
  Partials       21       21
Impacted Files Coverage Δ
trio/_core/tests/test_run.py 96.21% <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 46f4405...452aec9. Read the comment docs.

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.

3 participants