mirror of
https://github.com/python/cpython.git
synced 2025-11-24 20:30:18 +00:00
gh-138360: Fix test_free_threading for IO objects (#138359)
Fix typo in test_io.py
This commit is contained in:
parent
aec006be97
commit
7c92497e5c
1 changed files with 1 additions and 1 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue