From 7c92497e5c6d3d6c36721f554d09efffbe4bbc23 Mon Sep 17 00:00:00 2001 From: Andrey <11718563+uhx@users.noreply.github.com> Date: Mon, 1 Sep 2025 21:53:13 +0200 Subject: [PATCH] gh-138360: Fix `test_free_threading` for IO objects (#138359) Fix typo in test_io.py --- Lib/test/test_free_threading/test_io.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_free_threading/test_io.py b/Lib/test/test_free_threading/test_io.py index 41d89e04da87..c67aaff31b3f 100644 --- a/Lib/test/test_free_threading/test_io.py +++ b/Lib/test/test_free_threading/test_io.py @@ -41,7 +41,7 @@ class ThreadSafetyMixin: def truncate(barrier, b, *ignore): barrier.wait() try: b.truncate(0) - except: BufferError # ignore exported buffer + except BufferError: pass # ignore exported buffer def read(barrier, b, *ignore): barrier.wait() -- 2.47.3