Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

bpo-31234: threading_cleanup() now warns immediately#3138

Merged
vstinner merged 1 commit into
python:masterpython/cpython:masterfrom
vstinner:stricter_threading_cleanupCopy head branch name to clipboard
Sep 13, 2017
Merged

bpo-31234: threading_cleanup() now warns immediately#3138
vstinner merged 1 commit into
python:masterpython/cpython:masterfrom
vstinner:stricter_threading_cleanupCopy head branch name to clipboard

Conversation

@vstinner

@vstinner vstinner commented Aug 18, 2017

Copy link
Copy Markdown
Member

support.threading_cleanup() waits for 1 second before emitting a
warning if there are threads running in the background. With this
change, it now emits the warning immediately, to be able to catch
bugs more easily.

https://bugs.python.org/issue31234

Comment thread Lib/test/support/__init__.py Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I don't like the "leak" terminology here. I think the previous message was better.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Fixed. I reverted to the original message.

@vstinner

Copy link
Copy Markdown
Member Author

I rebased my change to get other fixes for dangling threads and processes.

@vstinner vstinner changed the title [WIP] bpo-31234: threading_cleanup() now warns immediately bpo-31234: threading_cleanup() now warns immediately Sep 13, 2017
@vstinner

Copy link
Copy Markdown
Member Author

test_ftplib and test_poplib should have been fixed by PR #3540. I rebased my PR one more time, only test_ssl should fail. Sadly, I'm unable to reproduce the test_ssl failure.

@vstinner vstinner changed the title bpo-31234: threading_cleanup() now warns immediately [WIP] bpo-31234: threading_cleanup() now warns immediately Sep 13, 2017
@vstinner

Copy link
Copy Markdown
Member Author

I tag again the PR as [WIP] until the test_ssl issue is fixed.

I rebased the PR to get the second test_ftplib fix (PR #3544).

support.threading_cleanup() waits for 1 second before emitting a
warning if there are threads running in the background. With this
change, it now emits the warning immediately, to be able to catch
bugs more easily.
@vstinner vstinner changed the title [WIP] bpo-31234: threading_cleanup() now warns immediately bpo-31234: threading_cleanup() now warns immediately Sep 13, 2017
@vstinner vstinner merged commit ace1ecc into python:master Sep 13, 2017
@vstinner vstinner deleted the stricter_threading_cleanup branch September 13, 2017 20:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.