From 116685e82ab4c70f146afdb85b4e9657a5c56a97 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 19 Jan 2026 21:28:27 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/psf/black-pre-commit-mirror: 25.12.0 → 26.1.0](https://github.com/psf/black-pre-commit-mirror/compare/25.12.0...26.1.0) --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a591618..4abcc29 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/psf/black-pre-commit-mirror - rev: 25.12.0 + rev: 26.1.0 hooks: - id: black args: [--safe, --quiet] From cc306b92ee387d9ce8beac221d262a9a92d912da Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 19 Jan 2026 21:31:22 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- tests/test_http.py | 9 ++------- tests/test_https.py | 1 - tests/test_smtp.py | 1 - 3 files changed, 2 insertions(+), 9 deletions(-) diff --git a/tests/test_http.py b/tests/test_http.py index 11902fd..b603eb0 100644 --- a/tests/test_http.py +++ b/tests/test_http.py @@ -10,7 +10,6 @@ from pytest_localserver import http from pytest_localserver import plugin - # define test fixture here again in order to run tests without having to # install the plugin anew every single time httpserver = plugin.httpserver @@ -304,17 +303,13 @@ def test_httpserver_init_failure_no_stderr_during_cleanup(tmp_path): script_path = tmp_path.joinpath("script.py") - script_path.write_text( - textwrap.dedent( - """ + script_path.write_text(textwrap.dedent(""" from pytest_localserver import http from unittest.mock import patch with patch("pytest_localserver.http.make_server", side_effect=RuntimeError("init failure")): server = http.ContentServer() - """ - ) - ) + """)) result = subprocess.run([sys.executable, str(script_path)], stderr=subprocess.PIPE) diff --git a/tests/test_https.py b/tests/test_https.py index d66450b..4647441 100644 --- a/tests/test_https.py +++ b/tests/test_https.py @@ -4,7 +4,6 @@ from pytest_localserver import https from pytest_localserver import plugin - # define test fixture here again in order to run tests without having to # install the plugin anew every single time httpsserver = plugin.httpsserver diff --git a/tests/test_smtp.py b/tests/test_smtp.py index 7fc3882..77e2f6e 100644 --- a/tests/test_smtp.py +++ b/tests/test_smtp.py @@ -9,7 +9,6 @@ from pytest_localserver import plugin - smtp = pytest.importorskip("pytest_localserver.smtp")