Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] authored and Cadair committed Apr 8, 2024
1 parent aec6979 commit f91b351
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions parfive/tests/test_downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -601,5 +601,10 @@ def test_download_out_of_main_thread(httpserver, tmpdir, recwarn):
validate_test_file(thread.result)

assert len(recwarn) > 0
assert any(['This download has been started in a thread which is not the main thread. You will not be able to interrupt the download.' ==
w.message.args[0] for w in recwarn])
assert any(
[
"This download has been started in a thread which is not the main thread. You will not be able to interrupt the download."
== w.message.args[0]
for w in recwarn
]
)

0 comments on commit f91b351

Please sign in to comment.