summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_io.py
Commit message (Collapse)AuthorAgeFilesLines
* Make some tests more frienly to MemoryError.Serhiy Storchaka2015-03-281-4/+10
|\ | | | | | | Free memory, unlock hanging threads.
| * Make some tests more frienly to MemoryError.Serhiy Storchaka2015-03-281-4/+11
| | | | | | | | Free memory, unlock hanging threads.
* | Issue #21802: The reader in BufferedRWPair now is closed even when closingSerhiy Storchaka2015-03-241-0/+47
|\ \ | |/ | | | | writer failed in BufferedRWPair.close().
| * Issue #21802: The reader in BufferedRWPair now is closed even when closingSerhiy Storchaka2015-03-241-0/+47
| | | | | | | | writer failed in BufferedRWPair.close().
* | Issue #23680: Reduce risk of race condition in check_interrupted_write() ofVictor Stinner2015-03-161-2/+2
| | | | | | | | | | | | test_io. Allocate the large data before scheduling an alarm in 1 second. On very slow computer, the alarm rings sometimes during the memory allocation.
* | Issue #23680: Reduce risk of race condition in check_interrupted_write_retry()Victor Stinner2015-03-161-1/+8
| | | | | | | | | | | | of test_io. Allocate the large data before scheduling an alarm in 1 second. On very slow computer, the alarm rings sometimes during the memory allocation.
* | Broke reference loops in tests added in issue #5700.Serhiy Storchaka2015-02-221-0/+3
|\ \ | |/
| * Broke reference loops in tests added in issue #5700.Serhiy Storchaka2015-02-221-0/+3
| |
* | Issue #5700: io.FileIO() called flush() after closing the file.Serhiy Storchaka2015-02-201-2/+48
|\ \ | |/ | | | | flush() was not called in close() if closefd=False.
| * Issue #5700: io.FileIO() called flush() after closing the file.Serhiy Storchaka2015-02-201-2/+48
| | | | | | | | flush() was not called in close() if closefd=False.
* | merge 3.4 (#23093)Benjamin Peterson2014-12-221-0/+14
|\ \ | |/
| * allow more operations to work on detached streams (closes #23093)Benjamin Peterson2014-12-221-0/+14
| | | | | | | | Patch by Martin Panter.
* | add spaceBenjamin Peterson2014-11-121-0/+1
| |
* | merge 3.4 (#22849)Benjamin Peterson2014-11-121-0/+16
|\ \ | |/
| * fix possible double free in TextIOWrapper.__init__ (closes #22849)Benjamin Peterson2014-11-121-0/+15
| |
* | merge 3.4 (#22517)Benjamin Peterson2014-09-301-0/+6
|\ \ | |/
| * merge 3.3 (#22517)Benjamin Peterson2014-09-301-0/+6
| |\
| | * clear BufferedRWPair weakrefs on deallocation (closes #22517)Benjamin Peterson2014-09-301-0/+6
| | |
| | * Issue #20404: reject non-text encodings early in TextIOWrapper.Georg Brandl2014-03-021-6/+24
| | |
* | | Issue #22215: Now ValueError is raised instead of TypeError when str or bytesSerhiy Storchaka2014-09-061-2/+2
| | | | | | | | | | | | argument contains not permitted null character or byte.
* | | (Merge 3.4) Issue #22331: Skip test_interrupted_write_text() on FreeBSD olderVictor Stinner2014-09-031-0/+2
|\ \ \ | |/ / | | | | | | than 8.0
| * | Issue #22331: Skip test_interrupted_write_text() on FreeBSD older than 8.0Victor Stinner2014-09-031-0/+2
| | |
* | | Issue #22054: Add os.get_blocking() and os.set_blocking() functions to get andVictor Stinner2014-07-291-14/+4
| | | | | | | | | | | | | | | set the blocking mode of a file descriptor (False if the O_NONBLOCK flag is set, True otherwise). These functions are not available on Windows.
* | | Issue #22032: __qualname__ instead of __name__ is now always used to formatSerhiy Storchaka2014-07-221-1/+1
| | | | | | | | | | | | fully qualified class names of Python implemented classes.
* | | add BufferedIOBase.readinto1 (closes #20578)Benjamin Peterson2014-06-221-0/+67
| | | | | | | | | | | | Patch by Nikolaus Rath.
* | | Issue #21310: Fixed possible resource leak in failed open().Serhiy Storchaka2014-06-091-0/+14
|\ \ \ | |/ /
| * | Issue #21310: Fixed possible resource leak in failed open().Serhiy Storchaka2014-06-091-0/+14
| | |
* | | Issue #21677: Fixed chaining nonnormalized exceptions in io close() methods.Serhiy Storchaka2014-06-091-0/+51
|\ \ \ | |/ /
| * | Issue #21677: Fixed chaining nonnormalized exceptions in io close() methods.Serhiy Storchaka2014-06-091-0/+51
| | |
* | | backout 0fb7789b5eeb for test breakage (#20578)Benjamin Peterson2014-06-081-25/+0
| | |
* | | add BufferedIOBase.readinto1 (closes #20578)Benjamin Peterson2014-06-081-0/+25
| | | | | | | | | | | | Patch by Nikolaus Rath.
* | | Issue #21396: Fix TextIOWrapper(..., write_through=True) to not force a ↵Antoine Pitrou2014-05-081-0/+32
|\ \ \ | |/ / | | | | | | | | | | | | flush() on the underlying binary stream. Patch by akira.
| * | Issue #21396: Fix TextIOWrapper(..., write_through=True) to not force a ↵Antoine Pitrou2014-05-081-0/+32
| | | | | | | | | | | | | | | | | | flush() on the underlying binary stream. Patch by akira.
* | | Issue #21057: TextIOWrapper now allows the underlying binary stream's read() ↵Antoine Pitrou2014-04-291-0/+28
|/ / | | | | | | | | | | or read1() method to return an arbitrary bytes-like object (such as a memoryview). Patch by Nikolaus Rath.
* | Issue #17671: Fixed a crash when use non-initialized io.BufferedRWPair.Serhiy Storchaka2014-02-121-0/+38
|\ \ | |/ | | | | Based on patch by Stephen Tu.
| * Issue #17671: Fixed a crash when use non-initialized io.BufferedRWPair.Serhiy Storchaka2014-02-121-0/+38
| | | | | | | | Based on patch by Stephen Tu.
* | Temporary silence test broken by issue19255.Serhiy Storchaka2014-02-101-1/+2
| | | | | | | | Remove unused variables.
* | Issue #20532: Tests which use _testcapi now are marked as CPython only.Serhiy Storchaka2014-02-071-2/+3
|\ \ | |/
| * Issue #20532: Tests which use _testcapi now are marked as CPython only.Serhiy Storchaka2014-02-071-2/+3
| |
* | Close #20404: blacklist non-text encodings in io.TextIOWrapperNick Coghlan2014-02-041-8/+25
| | | | | | | | | | | | | | | | | | - io.TextIOWrapper (and hence the open() builtin) now use the internal codec marking system added for issue #19619 - also tweaked the C code to only look up the encoding once, rather than multiple times - the existing output type checks remain in place to deal with unmarked third party codecs.
* | Issue #20037: Avoid crashes when doing text I/O late at interpreter shutdown.Antoine Pitrou2013-12-211-1/+40
| |
* | Issue 19572: More silently skipped tests explicitly skipped.Zachary Ware2013-12-081-8/+4
|\ \ | |/
| * Issue 19572: More silently skipped tests explicitly skipped.Zachary Ware2013-12-081-8/+4
| |
* | Issue #15204: Silence and check the 'U' mode deprecation warnings in tests.Serhiy Storchaka2013-11-241-1/+2
| | | | | | | | Changed deprecation message in the fileinput module.
* | Issue #18112: PEP 442 implementation (safe object finalization).Antoine Pitrou2013-07-301-21/+24
| |
* | test_io: check_interrupted_write() now cancels the alarm if ZeroDivisionErrorVictor Stinner2013-07-151-3/+6
| | | | | | | | | | | | exception was not raised. Before the process was killed by SIGALRM in another random test (1 second later)
* | Issue #18025: Fixed a segfault in io.BufferedIOBase.readinto() when rawSerhiy Storchaka2013-05-281-0/+9
|\ \ | |/ | | | | stream's read() returns more bytes than requested.
| * Issue #18025: Fixed a segfault in io.BufferedIOBase.readinto() when rawSerhiy Storchaka2013-05-281-0/+9
| | | | | | | | stream's read() returns more bytes than requested.
* | Issue #17835: Fix test_io when the default OS pipe buffer size is larger ↵Antoine Pitrou2013-04-241-2/+2
|\ \ | |/ | | | | than one million bytes.
| * Issue #17835: Fix test_io when the default OS pipe buffer size is larger ↵Antoine Pitrou2013-04-241-2/+2
| | | | | | | | than one million bytes.