From c195ea69d6d5b5c4a2b22598615bc21d08c6a367 Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Sat, 9 Dec 2023 19:43:12 +0000 Subject: [PATCH] [autofix.ci] apply automated fixes --- CHANGELOG.md | 1 + test/mitmproxy/addons/test_clientplayback.py | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f5c76bdcb9..a709c7146b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ * Improved handling for `--allow-hosts`/`--ignore-hosts` options in WireGuard mode (#5930). ([#6513](https://github.com/mitmproxy/mitmproxy/pull/6513), @dsphper) * Fix a bug where TCP connections were not closed properly. + ([#6543](https://github.com/mitmproxy/mitmproxy/pull/6543), @mhils) * DNS resolution is now exempted from `--ignore-hosts` in WireGuard Mode. ([#6513](https://github.com/mitmproxy/mitmproxy/pull/6513), @dsphper) * For plaintext traffic, `--ignore-hosts` now also takes HTTP/1 host headers into account. diff --git a/test/mitmproxy/addons/test_clientplayback.py b/test/mitmproxy/addons/test_clientplayback.py index 8446cbca42..1d64db194e 100644 --- a/test/mitmproxy/addons/test_clientplayback.py +++ b/test/mitmproxy/addons/test_clientplayback.py @@ -55,7 +55,6 @@ async def _handle(r, w): @pytest.mark.parametrize("mode", ["http", "https", "upstream", "err"]) @pytest.mark.parametrize("concurrency", [-1, 1]) async def test_playback(tdata, mode, concurrency): - async def handler(reader: asyncio.StreamReader, writer: asyncio.StreamWriter): if mode == "err": return