summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_io.py
Commit message (Collapse)AuthorAgeFilesLines
* Use sequence repetition instead of bytes constructor with integer argument.Serhiy Storchaka2016-09-111-1/+1
|
* Fixes expected error when getting encoding while shutting down.Steve Dower2016-09-091-1/+1
|
* Fix expected error message in PyTextIOWrapperTestSteve Dower2016-09-081-1/+1
|
* Issue #27959: Prevent ImportError from escaping codec search functionSteve Dower2016-09-071-2/+1
|
* new and exciting shutdown error on windowsBenjamin Peterson2016-09-071-1/+2
|
* Issue #19527: Fixed tests with defined COUNT_ALLOCS.Serhiy Storchaka2016-07-031-0/+2
|\
| * Issue #19527: Fixed tests with defined COUNT_ALLOCS.Serhiy Storchaka2016-07-031-0/+2
| |
* | Issue #27186: Update os.fspath()/PyOS_FSPath() to check the returnBrett Cannon2016-06-241-1/+1
| | | | | | | | | | | | | | type of __fspath__(). As part of this change, also make sure that the pure Python implementation of os.fspath() is tested.
* | Issue #27066: Fixed SystemError if a custom opener (for open()) returns aBarry Warsaw2016-06-081-0/+16
|\ \ | |/ | | | | negative number without setting an exception.
| * Issue #27066: Fixed SystemError if a custom opener (for open()) returnsBarry Warsaw2016-06-081-0/+16
| | | | | | | | a negative number without setting an exception.
* | issue27186: add open/io.open; patch by Jelle ZijlstraEthan Furman2016-06-041-0/+26
| |
* | Issue #20699: Merge io bytes-like fixes from 3.5Martin Panter2016-05-281-14/+64
|\ \ | |/
| * Issue #20699: Document that “io” methods accept bytes-like objectsMartin Panter2016-05-281-14/+64
| | | | | | | | | | | | | | | | This matches the usage of ZipFile and BufferedWriter. This still requires return values to be bytes() objects. Also document and test that the write() methods should only access their argument before they return.
* | Issue #22854: Merge test fix from 3.5Martin Panter2016-03-311-1/+1
|\ \ | |/
| * Issue #22854: Fix logic for skipping testMartin Panter2016-03-311-1/+1
| |
* | Issue #22854: Merge Windows pipe skipping from 3.5Martin Panter2016-03-311-7/+7
|\ \ | |/
| * Issue #22854: Skip pipe seek tests on WindowsMartin Panter2016-03-311-2/+7
| |
* | Issue #22854: Skip pipe seekable() tests on WindowsMartin Panter2016-03-311-1/+6
| |
* | Issue #22854: Merge UnsupportedOperation fixes from 3.5Martin Panter2016-03-311-11/+105
|\ \ | |/
| * Issue #22854: Clarify documentation about UnsupportedOperation and add testsMartin Panter2016-03-311-11/+105
| | | | | | | | | | Also change BufferedReader.writable() and BufferedWriter.readable() to always return False.
* | test_io: ignore DeprecationWarning on bytes path on WindowsVictor Stinner2016-03-251-1/+5
| |
* | Issue #26637: Fix test_ioVictor Stinner2016-03-251-2/+1
|/ | | | | The import machinery now raises a different exception when it fails at Python shutdown.
* Issue #26325: Added test.support.check_no_resource_warning() to check thatSerhiy Storchaka2016-02-111-9/+3
| | | | no ResourceWarning is emitted.
* Issue #25523: Merge a-to-an corrections from 3.4.Serhiy Storchaka2015-11-021-1/+1
|\
| * Issue #25523: Further a-to-an corrections.Serhiy Storchaka2015-11-021-1/+1
| |
* | Issue #20557: Use specific asserts in io tests.Serhiy Storchaka2015-08-021-10/+10
|\ \ | |/
| * Issue #20557: Use specific asserts in io tests.Serhiy Storchaka2015-08-021-10/+10
| |
| * Issue #23796: peak and read1 methods of BufferedReader now raise ValueErrorBerker Peksag2015-05-121-0/+8
| | | | | | | | | | | | if they called on a closed object. Patch by John Hergenroeder.
| * Backported tests from issue #20175.Serhiy Storchaka2015-04-161-0/+11
| |
* | Issue #9858: Add missing method stubs to _io.RawIOBase. Patch by Laura ↵Antoine Pitrou2015-05-201-2/+2
| | | | | | | | Rupprecht.
* | Issue #23796: peak and read1 methods of BufferedReader now raise ValueErrorBerker Peksag2015-05-121-0/+8
| | | | | | | | | | | | if they called on a closed object. Patch by John Hergenroeder.
* | Issue #9517: Move script_helper to the support package.Berker Peksag2015-05-061-1/+1
| | | | | | | | Patch by Christie Wilson.
* | Issue #20175: Converted the _io module to Argument Clinic.Serhiy Storchaka2015-04-161-2/+11
| |
* | issue9859: Use an expected failure rather than a skip.Gregory P. Smith2015-04-141-1/+1
| |
* | issue9859: rename CPyMatchTest to APIMismatchTest and add @support.cpython_only.Gregory P. Smith2015-04-141-2/+3
| |
* | issue9859: Adds a CPyMatchTest test case to compare the exposed APIsGregory P. Smith2015-04-141-1/+15
| | | | | | | | | | of the Python io module and the C io module. They do not currently match so the failing test is marked with @unittest.skip.
* | Issue #22982: Improve BOM handling when seeking to multiple positions of a ↵Antoine Pitrou2015-04-131-0/+13
|\ \ | |/ | | | | writable text file.
| * Issue #22982: Improve BOM handling when seeking to multiple positions of a ↵Antoine Pitrou2015-04-131-0/+13
| | | | | | | | writable text file.
* | Issue #23309: Avoid a deadlock at shutdown if a daemon thread is abortedAntoine Pitrou2015-04-131-1/+44
|\ \ | |/ | | | | | | | | while it is holding a lock to a buffered I/O object, and the main thread tries to use the same I/O object (typically stdout or stderr). A fatal error is emitted instead.
| * Issue #23309: Avoid a deadlock at shutdown if a daemon thread is abortedAntoine Pitrou2015-04-131-1/+44
| | | | | | | | | | | | while it is holding a lock to a buffered I/O object, and the main thread tries to use the same I/O object (typically stdout or stderr). A fatal error is emitted instead.
* | Issue #23799: Added test.support.start_threads() for running and cleaning upSerhiy Storchaka2015-04-011-18/+8
|\ \ | |/ | | | | multiple threads.
| * Issue #23799: Added test.support.start_threads() for running and cleaning upSerhiy Storchaka2015-04-011-20/+10
| | | | | | | | multiple threads.
* | 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
| |