]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-138360: Fix `test_free_threading` for IO objects (#138359)
authorAndrey <11718563+uhx@users.noreply.github.com>
Mon, 1 Sep 2025 19:53:13 +0000 (21:53 +0200)
committerGitHub <noreply@github.com>
Mon, 1 Sep 2025 19:53:13 +0000 (19:53 +0000)
Fix typo in test_io.py

Lib/test/test_free_threading/test_io.py

index 41d89e04da8716666be5619d15cb1fbf77a39906..c67aaff31b3f5b627c8bf32cbed5fcb0798e2414 100644 (file)
@@ -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()