mirror of
https://github.com/python/cpython.git
synced 2025-12-10 11:00:14 +00:00
Issue #21058: fix typo in a comment. Patch written by Vajrasky Kok.
This commit is contained in:
parent
b60ac7acfb
commit
87d13ea56d
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue