https://github.com/python/cpython/commit/7c92497e5c6d3d6c36721f554d09efffbe4bbc23
commit: 7c92497e5c6d3d6c36721f554d09efffbe4bbc23
branch: main
author: Andrey <[email protected]>
committer: sobolevn <[email protected]>
date: 2025-09-01T19:53:13Z
summary:
gh-138360: Fix `test_free_threading` for IO objects (#138359)
Fix typo in test_io.py
files:
M Lib/test/test_free_threading/test_io.py
diff --git a/Lib/test/test_free_threading/test_io.py
b/Lib/test/test_free_threading/test_io.py
index 41d89e04da8716..c67aaff31b3f5b 100644
--- a/Lib/test/test_free_threading/test_io.py
+++ b/Lib/test/test_free_threading/test_io.py
@@ -41,7 +41,7 @@ def writelines(barrier, b, *ignore):
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()
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]