From: Andrey <11718563+uhx@users.noreply.github.com> Date: Mon, 1 Sep 2025 19:53:13 +0000 (+0200) Subject: gh-138360: Fix `test_free_threading` for IO objects (#138359) X-Git-Tag: v3.15.0a1~543 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7c92497e5c6d3d6c36721f554d09efffbe4bbc23;p=thirdparty%2FPython%2Fcpython.git gh-138360: Fix `test_free_threading` for IO objects (#138359) Fix typo in test_io.py --- 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()