Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes signal that only works in main thread of the main interpreter (#…
…133) * Fixes signal that only works in main thread of the main interpreter * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update warning message Co-authored-by: Stuart Mumford <stuart@cadair.com> * Adds a test that a warning is raised Adds a test that a warning is raised when download has been started in a thread which is not the main thread. * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Removes an unused import from my previous commit * Fixes signal that only works in main thread of the main interpreter * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update warning message Co-authored-by: Stuart Mumford <stuart@cadair.com> * Adds a test that a warning is raised Adds a test that a warning is raised when download has been started in a thread which is not the main thread. * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Removes an unused import from my previous commit * Skip test_download_out_of_main_thread for Windows The test_download_out_of_main_thread fails for windows and this is normal because the UserWarning is never emitted because initially the _add_shutdown_signals is skipped for windows. So this commit fix this issue. --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Stuart Mumford <stuart@cadair.com>
- Loading branch information