summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_file.py
Commit message (Collapse)AuthorAgeFilesLines
* SF Patch #494867 test file methodsNeal Norwitz2002-01-011-0/+29
| | | | | | Test that the file methods raise ValueError when called on a closed file. Test .isatty() Test name, closed attributes
* Fiddle with new test cases -- verify that we get a sensible errorJeremy Hylton2001-11-091-4/+7
| | | | | | | message for bad mode argument -- so that it doesn't fail on Windows. It's hack. We know that errno is set to 0 in this case on Windows, so check for that specifically.
* Fix SF buf #476953: Bad more for opening file gives bad msg.Jeremy Hylton2001-11-091-0/+11
| | | | | | If fopen() fails with EINVAL it means that the mode argument is invalid. Return the mode in the error message instead of the filename.
* This patch removes all uses of "assert" in the regression test suiteMarc-André Lemburg2001-01-171-2/+2
| | | | | | | and replaces them with a new API verify(). As a result the regression suite will also perform its tests in optimization mode. Written by Marc-Andre Lemburg. Copyright assigned to Guido van Rossum.
* Clean up the temporary file when done with it.Fred Drake2000-10-231-0/+4
|
* New test suite for file objects by Jeremy Hilton. This will needMarc-André Lemburg2000-08-251-0/+45
to be extended somewhat -- right now it only tests the .writelines() method.