summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_io.py
diff options
context:
space:
mode:
authorSam Gross <colesbury@gmail.com>2024-01-25 18:27:36 (GMT)
committerGitHub <noreply@github.com>2024-01-25 18:27:36 (GMT)
commitb52fc70d1ab3be7866ab71065bae61a03a28bfae (patch)
treef364d714c70229ad70b6138aac6181d1ee375363 /Lib/test/test_io.py
parent4850410b60183dac021ded219a49be140fe5fefe (diff)
downloadcpython-b52fc70d1ab3be7866ab71065bae61a03a28bfae.zip
cpython-b52fc70d1ab3be7866ab71065bae61a03a28bfae.tar.gz
cpython-b52fc70d1ab3be7866ab71065bae61a03a28bfae.tar.bz2
gh-112529: Implement GC for free-threaded builds (#114262)
* gh-112529: Implement GC for free-threaded builds This implements a mark and sweep GC for the free-threaded builds of CPython. The implementation relies on mimalloc to find GC tracked objects (i.e., "containers").
Diffstat (limited to 'Lib/test/test_io.py')
-rw-r--r--Lib/test/test_io.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/Lib/test/test_io.py b/Lib/test/test_io.py
index 936edea..9e28b93 100644
--- a/Lib/test/test_io.py
+++ b/Lib/test/test_io.py
@@ -3652,10 +3652,8 @@ class TextIOWrapperTest(unittest.TestCase):
codecs.lookup('utf-8')
class C:
- def __init__(self):
- self.buf = io.BytesIO()
def __del__(self):
- io.TextIOWrapper(self.buf, **{kwargs})
+ io.TextIOWrapper(io.BytesIO(), **{kwargs})
print("ok")
c = C()
""".format(iomod=iomod, kwargs=kwargs)