summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_fileio.py
Commit message (Collapse)AuthorAgeFilesLines
* 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. ........
* Only the parts which are relevant for 3.x branch.Florent Xicluna2010-03-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Merged revisions 78757-78758,78769,78815 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r78757 | florent.xicluna | 2010-03-07 13:14:25 +0100 (dim, 07 mar 2010) | 2 lines Fix some py3k warnings in the standard library. ........ r78758 | florent.xicluna | 2010-03-07 13:18:33 +0100 (dim, 07 mar 2010) | 4 lines Issue #7849: Now the utility ``check_warnings`` verifies if the warnings are effectively raised. A new utility ``check_py3k_warnings`` deals with py3k warnings. ........ r78769 | florent.xicluna | 2010-03-07 20:14:12 +0100 (dim, 07 mar 2010) | 2 lines Refresh the documentation for the test.test_support module. ........ r78815 | florent.xicluna | 2010-03-09 20:57:01 +0100 (mar, 09 mar 2010) | 2 lines #7772: Fix test_py3kwarn. Now the test suite could pass with "-3" flag. ........
* Merged revisions 77890 via svnmerge fromAntoine Pitrou2010-01-311-0/+11
| | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r77890 | antoine.pitrou | 2010-01-31 23:26:04 +0100 (dim., 31 janv. 2010) | 7 lines - Issue #6939: Fix file I/O objects in the `io` module to keep the original file position when calling `truncate()`. It would previously change the file position to the given argument, which goes against the tradition of ftruncate() and other truncation APIs. Patch by Pascal Chambon. ........
* don't accept bytes in FileIO.write #7785Benjamin Peterson2010-01-271-1/+4
|
* Merged revisions 76805 via svnmerge fromBenjamin Peterson2009-12-131-0/+9
| | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r76805 | benjamin.peterson | 2009-12-13 13:19:07 -0600 (Sun, 13 Dec 2009) | 7 lines accept None as the same as having passed no argument in file types #7349 This is for consistency with imitation file objects like StringIO and BytesIO. This commit also adds a few tests, where they were lacking for concerned methods. ........
* Remove AtheOS support, as per PEP 11 (which claims that all code was removed ↵Antoine Pitrou2009-10-241-2/+0
| | | | in Python 3.0).
* convert old fail* assertions to assert*Benjamin Peterson2009-06-301-6/+6
|
* Issue #5761: Add the name of the underlying file to the repr() of various IO ↵Antoine Pitrou2009-05-231-3/+7
| | | | objects.
* Merged revisions 72859 via svnmerge fromAntoine Pitrou2009-05-231-1/+1
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r72859 | antoine.pitrou | 2009-05-23 18:32:32 +0200 (sam., 23 mai 2009) | 3 lines Issue #3877: skip a test_fileio subtest on all BSDs, not only FreeBSD ........
* http://bugs.python.org/issue5544Kristján Valur Jónsson2009-03-241-13/+100
| | | | | Guard _fileio.c against other malicious os.close(f.fileno()) attempts. Add tests to test_fileio.py to verify behaviour.
* The error detection code in FileIO.close() could fail to reflect the `errno` ↵Antoine Pitrou2009-03-131-0/+15
| | | | value, and report it as -1 instead.
* Fix failures introduced by buggy merge (1)Antoine Pitrou2009-03-041-2/+2
|