summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_io.py
diff options
context:
space:
mode:
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)