mirror of
https://github.com/python/cpython.git
synced 2026-01-04 14:32:21 +00:00
Merge from 3.4
This commit is contained in:
commit
42a17fa4fd
2 changed files with 3 additions and 2 deletions
|
|
@ -395,6 +395,7 @@ def test_remove_nonexistent(self):
|
|||
self.assertRaises(self.parser.remove_option, ('foo',), None,
|
||||
ValueError, "no such option 'foo'")
|
||||
|
||||
@support.impl_detail('Relies on sys.getrefcount', cpython=True)
|
||||
def test_refleak(self):
|
||||
# If an OptionParser is carrying around a reference to a large
|
||||
# object, various cycles can prevent it from being GC'd in
|
||||
|
|
|
|||
|
|
@ -42,8 +42,8 @@ PyDoc_STRVAR(iobase_doc,
|
|||
"bytes. bytearrays are accepted too, and in some cases (such as\n"
|
||||
"readinto) needed. Text I/O classes work with str data.\n"
|
||||
"\n"
|
||||
"Note that calling any method (even inquiries) on a closed stream is\n"
|
||||
"undefined. Implementations may raise IOError in this case.\n"
|
||||
"Note that calling any method (except additional calls to close(),\n"
|
||||
"which are ignored) on a closed stream should raise a ValueError.\n"
|
||||
"\n"
|
||||
"IOBase (and its subclasses) support the iterator protocol, meaning\n"
|
||||
"that an IOBase object can be iterated over yielding the lines in a\n"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue