From e00c1d587a7d8a8b6cd711d1d59ce2aa6e2a1f23 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 4 Apr 2024 17:38:25 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- parfive/tests/test_downloader.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/parfive/tests/test_downloader.py b/parfive/tests/test_downloader.py index a93f337..4e8bb34 100644 --- a/parfive/tests/test_downloader.py +++ b/parfive/tests/test_downloader.py @@ -1,9 +1,9 @@ import os import platform import threading +from time import sleep from pathlib import Path from tempfile import gettempdir -from time import sleep from unittest import mock from unittest.mock import patch @@ -524,6 +524,7 @@ def __init__(self, *args, **kwargs): def run(self): self.result = self._target(*self._args, **self._kwargs) + @skip_windows def test_download_out_of_main_thread(httpserver, tmpdir, recwarn): tmpdir = str(tmpdir) @@ -542,5 +543,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]) \ No newline at end of file + 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 + ] + )