Commit 3647af89 authored by Victor Stinner's avatar Victor Stinner

Issue #21058: fix typo in a comment. Patch written by Vajrasky Kok.

parent a1b37900
...@@ -760,7 +760,7 @@ class TestNamedTemporaryFile(BaseTestCase): ...@@ -760,7 +760,7 @@ class TestNamedTemporaryFile(BaseTestCase):
self.assertRaises(ValueError, use_closed) self.assertRaises(ValueError, use_closed)
def test_no_leak_fd(self): def test_no_leak_fd(self):
# Issue #21058: don't leak file descriptor when io.pen() fails # Issue #21058: don't leak file descriptor when io.open() fails
closed = [] closed = []
def close(fd): def close(fd):
closed.append(fd) closed.append(fd)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment