summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_fileinput.py
Commit message (Collapse)AuthorAgeFilesLines
* 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.