summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_fileinput.py
Commit message (Collapse)AuthorAgeFilesLines
* Issue #15068: Got rid of excessive buffering in the fileinput module.Serhiy Storchaka2016-03-081-2/+70
| | | | The bufsize parameter is no longer used.
* Issue #19543: Emit deprecation warning for known non-text encodings.Serhiy Storchaka2015-05-311-3/+4
| | | | | | | | | | Backported issues #19619: encode() and decode() methods and constructors of str, unicode and bytearray classes now emit deprecation warning for known non-text encodings when Python is ran with the -3 option. Backported issues #20404: io.TextIOWrapper (and hence io.open()) now uses the internal codec marking system added to emit deprecation warning for known non-text encodings at stream construction time when Python is ran with the -3 option.
* Correct and improve comments in test_fileinput (closes #20501).Serhiy Storchaka2014-03-031-3/+3
| | | | Thanks Vajrasky Kok and Zachary Ware.
* Issue #20501: fileinput module no longer reads whole file into memory when usingSerhiy Storchaka2014-02-261-1/+42
| | | | fileinput.hook_encoded.
* convert usage of fail* to assert*Benjamin Peterson2009-06-301-3/+3
|
* Patch #2167 from calvin: Remove unused importsChristian Heimes2008-02-231-1/+1
|
* Whitespace normalization. Ugh, we really need to do this more often.Neal Norwitz2007-04-251-7/+7
| | | | You might want to review this change as it's my first time. Be gentle. :-)
* Convert test_fileinput to use unittest.Collin Winter2007-04-071-198/+196
|
* Try to handle sys.getfilesystemencoding() returning None.Neal Norwitz2006-03-261-1/+4
| | | | | ascii seems like the safest bet that it will exist. I wonder if utf-8 would be a better choice? This should get test_fileinput passing on OpenBSD.
* Repair new test failures on Windows due toTim Peters2006-02-191-4/+4
| | | | | implicit assumptions that there's no difference between text and binary modes.
* Patch #1215184: FileInput now can be given an opening hook which canGeorg Brandl2006-02-191-1/+23
| | | | be used to control how files are opened.
* Patch #1212287: fileinput.input() now has a mode parameter forGeorg Brandl2006-02-191-1/+18
| | | | specifying the file mode input files should be opened with.
* Patch #1215184: fileinput now has a fileno() function for getting theGeorg Brandl2006-02-191-0/+16
| | | | current file number.
* Patch #1337756: fileinput now accepts Unicode filenames.Georg Brandl2006-02-191-0/+10
|
* Get rid of relative imports in all unittests. Now anything thatBarry Warsaw2002-07-231-1/+1
| | | | | | | | | | | imports e.g. test_support must do so using an absolute package name such as "import test.test_support" or "from test import test_support". This also updates the README in Lib/test, and gets rid of the duplicate data dirctory in Lib/test/data (replaced by Lib/email/test/data). Now Tim and Jack can have at it. :)
* SF patch #440170: Tests for fileinput module.Tim Peters2001-07-111-0/+159
New test_fileinput.py from Nick Mathewson, fiddled to use TESTFN and sundry style nits.