Skip to content

bpo-32710: test_asyncio: test_sendfile reset policy#11461

Merged
vstinner merged 2 commits into
python:masterfrom
vstinner:test_asyncio_sendfile
Jan 7, 2019
Merged

bpo-32710: test_asyncio: test_sendfile reset policy#11461
vstinner merged 2 commits into
python:masterfrom
vstinner:test_asyncio_sendfile

Conversation

@vstinner

@vstinner vstinner commented Jan 7, 2019

Copy link
Copy Markdown
Member

test_asyncio/test_sendfile.py now resets the event loop policy using
tearDownModule() as done in other tests, to prevent a warning when
running tests on Windows.

https://bugs.python.org/issue32710

test_asyncio/test_sendfile.py now resets the event loop policy using
tearDownModule() as done in other tests, to prevent a warning when
running tests on Windows.

@asvetlov asvetlov left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, thank you!

@vstinner
vstinner merged commit df8e1fb into python:master Jan 7, 2019
@vstinner
vstinner deleted the test_asyncio_sendfile branch January 7, 2019 22:56
@vstinner

vstinner commented Jan 7, 2019

Copy link
Copy Markdown
Member Author

Good catch, thank you!

Thanks for the review. Sadly, it's not the fix for the reference leak. I'm trying to understand the leak since one year...

@miss-islington

Copy link
Copy Markdown
Contributor

Thanks @vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.7.
🐍🍒⛏🤖

@miss-islington

Copy link
Copy Markdown
Contributor

Sorry, @vstinner, I could not cleanly backport this to 3.7 due to a conflict.
Please backport using cherry_picker on command line.
cherry_picker df8e1fb4e388e18430a9be8c6ceeb03c330f166c 3.7

@vstinner

vstinner commented Jan 7, 2019

Copy link
Copy Markdown
Member Author

Sorry, @vstinner, I could not cleanly backport this to 3.7 due to a conflict.

Oh, Lib/test/test_asyncio/test_sendfile.py doesn't exist in the 3.7 branch.

@asvetlov

asvetlov commented Jan 8, 2019

Copy link
Copy Markdown
Contributor

Yes, sendfile tests were in test_events.py for 3.7 IIRC.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants