Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 42a17fa

Browse files
committed
Merge from 3.4
2 parents 1b28088 + 45278a8 commit 42a17fa

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

Lib/test/test_optparse.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,7 @@ def test_remove_nonexistent(self):
395395
self.assertRaises(self.parser.remove_option, ('foo',), None,
396396
ValueError, "no such option 'foo'")
397397

398+
@support.impl_detail('Relies on sys.getrefcount', cpython=True)
398399
def test_refleak(self):
399400
# If an OptionParser is carrying around a reference to a large
400401
# object, various cycles can prevent it from being GC'd in

Modules/_io/iobase.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ PyDoc_STRVAR(iobase_doc,
4242
"bytes. bytearrays are accepted too, and in some cases (such as\n"
4343
"readinto) needed. Text I/O classes work with str data.\n"
4444
"\n"
45-
"Note that calling any method (even inquiries) on a closed stream is\n"
46-
"undefined. Implementations may raise IOError in this case.\n"
45+
"Note that calling any method (except additional calls to close(),\n"
46+
"which are ignored) on a closed stream should raise a ValueError.\n"
4747
"\n"
4848
"IOBase (and its subclasses) support the iterator protocol, meaning\n"
4949
"that an IOBase object can be iterated over yielding the lines in a\n"

0 commit comments

Comments
 (0)