summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_fileio.py
Commit message (Collapse)AuthorAgeFilesLines
* gh-116303: Skip test module dependent tests if test modules are unavailable ↵Erlend E. Aasland2024-04-031-1/+2
| | | | (#117341)
* gh-82626: Emit a warning when bool is used as a file descriptor (GH-111275)Serhiy Storchaka2024-02-051-0/+8
|
* gh-66060: Use actual class name in _io type's __repr__ (#30824)AN Long2024-01-091-0/+10
| | | | | | Use the object's actual class name in the following _io type's __repr__: - FileIO - TextIOWrapper - _WindowsConsoleIO
* gh-111799: Fix `testRecursiveRepr` from `test_fileio` on WASI (GH-112181)Nikita Sobolev2023-11-161-1/+3
|
* Make use of TESTFN_ASCII in test_fileio (GH-101645)Zachary Ware2023-02-071-7/+6
| | | | | testBytesOpen requires an ASCII filename, but TESTFN usually isn't ASCII. Automerge-Triggered-By: GH:zware
* Fix links to old SF bugs (#95648)Serhiy Storchaka2022-08-041-1/+1
|
* gh-90473: Decrease recursion limit and skip tests on WASI (GH-92803)Christian Heimes2022-05-191-1/+4
|
* bpo-40280: Address more test failures on Emscripten (GH-31050)Christian Heimes2022-02-051-2/+2
| | | Co-authored-by: Brett Cannon <brett@python.org>
* bpo-45229: Remove test_main in many tests (GH-28405)Serhiy Storchaka2021-09-191-9/+6
| | | | | | | | | Instead of explicitly enumerate test classes for run_unittest() use the unittest ability to discover tests. This also makes these tests discoverable and runnable with unittest. load_tests() can be used for dynamic generating tests and adding doctests. setUpModule(), tearDownModule() and addModuleCleanup() can be used for running code before and after all module tests.
* bpo-25130: Add calls of gc.collect() in tests to support PyPy (GH-28005)Serhiy Storchaka2021-08-291-1/+2
|
* bpo-40275: Use new test.support helper submodules in tests (GH-21314)Hai Shi2020-07-061-2/+3
|
* bpo-36842: Implement PEP 578 (GH-12613)Steve Dower2019-05-231-0/+23
| | | Adds sys.audit, sys.addaudithook, io.open_code, and associated C APIs.
* bpo-25455: Fixed crashes in repr of recursive buffered file-like objects. (#514)Serhiy Storchaka2017-03-191-1/+7
|
* Issue #29409: Implement PEP 529 for io.FileIO (Patch by Eryk Sun)Steve Dower2017-02-041-1/+19
|
* Issue #28016: Skip /dev/tty seekable() test on AIXMartin Panter2016-11-141-1/+1
|
* Issue #20557: Use specific asserts in io tests.Serhiy Storchaka2015-08-021-3/+3
|\
| * Issue #20557: Use specific asserts in io tests.Serhiy Storchaka2015-08-021-3/+3
| |
| * Backported tests from issue #20175.Serhiy Storchaka2015-04-161-3/+12
| |
* | Issue #20175: Converted the _io module to Argument Clinic.Serhiy Storchaka2015-04-161-5/+11
| |
* | Issue #21859: Added Python implementation of io.FileIO.Serhiy Storchaka2015-04-101-58/+122
| |
* | Issue #17401: Output the closefd attribute as boolean.Serhiy Storchaka2014-12-021-4/+14
| |
* | Issue #17401: document closefd in io.FileIO docs and add to reprRobert Collins2014-10-181-4/+6
| | | | | | | | | | | | | | | | | | | | closefd was documented in the open docs but not the matching FileIO class documented. Further, closefd, part of the core state for the object was not shown. In review it was noted that the open docs are a little confusing about the interaction between closefd and paths, so tweaked them at the same time.
* | 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.
* | Issue #21679: Prevent extraneous fstat() calls during open(). Patch by ↵Antoine Pitrou2014-06-301-1/+10
|/ | | | Bohuslav Kabrda.
* Issue #20532: Tests which use _testcapi now are marked as CPython only.Serhiy Storchaka2014-02-071-2/+5
|\
| * Issue #20532: Tests which use _testcapi now are marked as CPython only.Serhiy Storchaka2014-02-071-2/+5
| |
* | Issue 19572: More silently skipped tests explicitly skipped.Zachary Ware2013-12-081-2/+1
|\ \ | |/
| * Issue 19572: More silently skipped tests explicitly skipped.Zachary Ware2013-12-081-2/+1
| |
* | Issue #18876: The FileIO.mode attribute now better reflects the actual mode ↵Antoine Pitrou2013-09-041-1/+16
|\ \ | |/ | | | | | | | | under which the file was opened. Patch by Erik Bray.
| * Issue #18876: The FileIO.mode attribute now better reflects the actual mode ↵Antoine Pitrou2013-09-041-1/+16
| | | | | | | | | | | | under which the file was opened. Patch by Erik Bray.
| * Issue #15989: Fix several occurrences of integer overflowSerhiy Storchaka2013-01-191-0/+4
| |\ | | | | | | | | | | | | | | | when result of PyLong_AsLong() narrowed to int without checks. This is a backport of changesets 13e2e44db99d and 525407d89277.
| | * Issue #15989: Fix several occurrences of integer overflowSerhiy Storchaka2013-01-191-0/+4
| | | | | | | | | | | | | | | | | | when result of PyLong_AsLong() narrowed to int without checks. This is a backport of changesets 13e2e44db99d and 525407d89277.
* | | Issue #15989: Fix several occurrences of integer overflowSerhiy Storchaka2013-01-141-0/+4
| | | | | | | | | | | | when result of PyLong_AsLong() narrowed to int without checks.
* | | Replace IOError with OSError (#16715)Andrew Svetlov2012-12-251-9/+9
| | |
* | | Get rig of EnvironmentError (#16705)Andrew Svetlov2012-12-171-1/+1
|/ /
* | Merge for issue #15744: add tests for the writelines() method of file objects.Antoine Pitrou2012-10-161-0/+22
|\ \ | |/
| * Add tests for the writelines() method of file objects.Antoine Pitrou2012-10-161-0/+22
| | | | | | | | Original patch by Felipe Cruz.
* | Issue #15247: FileIO now raises an error when given a file descriptor ↵Antoine Pitrou2012-07-061-0/+8
|\ \ | |/ | | | | pointing to a directory.
| * Issue #15247: FileIO now raises an error when given a file descriptor ↵Antoine Pitrou2012-07-061-0/+8
| | | | | | | | pointing to a directory.
* | #10053: Don't close FDs when FileIO.__init__ failsHynek Schlawack2012-06-211-0/+11
|\ \ | |/ | | | | Loosely based on the work by Hirokazu Yamamoto.
| * #10053: Don't close FDs when FileIO.__init__ failsHynek Schlawack2012-06-211-0/+11
| | | | | | | | Loosely based on the work by Hirokazu Yamamoto.
* | Issue #13848: open() and the FileIO constructor now check for NUL characters ↵Antoine Pitrou2012-01-291-0/+5
|\ \ | |/ | | | | | | | | in the file name. Patch by Hynek Schlawack.
| * Issue #13848: open() and the FileIO constructor now check for NUL characters ↵Antoine Pitrou2012-01-291-0/+5
| | | | | | | | | | | | in the file name. Patch by Hynek Schlawack.
* | use io.SEEK_* constants instead of os.SEEK_* where an IO stream is seeked, ↵Eli Bendersky2012-01-031-2/+3
|/ | | | leaving the os.SEEK_* constants only for os.lseek, as documented
* #9424: Replace deprecated assert* methods in the Python test suite.Ezio Melotti2010-11-201-29/+29
|
* Fix ResourceWarning about unclosed fileBrian Curtin2010-10-301-1/+0
|
* Issue #10253: FileIO leaks a file descriptor when trying to open a fileAntoine Pitrou2010-10-301-0/+1
| | | | for append that isn't seekable. Patch by Brian Brazil.
* Issue #8734: Avoid crash in msvcrt.get_osfhandle() when an invalid fileAntoine Pitrou2010-09-041-0/+3
| | | | descriptor is provided. Patch by Pascal Chambon.
* Merged revisions 79024 via svnmerge fromEzio Melotti2010-03-181-1/+1
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r79024 | ezio.melotti | 2010-03-17 16:22:34 +0200 (Wed, 17 Mar 2010) | 1 line Use "x in y" instead of y.find(x) != -1. ........
* Merged revisions 78093 via svnmerge fromGeorg Brandl2010-03-141-3/+1
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r78093 | georg.brandl | 2010-02-07 18:03:15 +0100 (So, 07 Feb 2010) | 1 line Remove unused imports in test modules. ........