summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_os.py
Commit message (Collapse)AuthorAgeFilesLines
* SF patch #462296: Add attributes to os.stat results; by Nick Mathewson.Guido van Rossum2001-10-181-2/+119
| | | | | | | | | | | | | | | | | This is a big one, touching lots of files. Some of the platforms aren't tested yet. Briefly, this changes the return value of the os/posix functions stat(), fstat(), statvfs(), fstatvfs(), and the time functions localtime(), gmtime(), and strptime() from tuples into pseudo-sequences. When accessed as a sequence, they behave exactly as before. But they also have attributes like st_mtime or tm_year. The stat return value, moreover, has a few platform-specific attributes that are not available through the sequence interface (because everybody expects the sequence to have a fixed length, these couldn't be added there). If your platform's struct stat doesn't define st_blksize, st_blocks or st_rdev, they won't be accessible from Python either. (Still missing is a documentation update.)
* Change the PyUnit-based tests to use the test_main() approach. ThisFred Drake2001-09-201-1/+5
| | | | | allows using the tests with unittest.py as a script. The tests will still run when run as a script themselves.
* Merge changes from r22a2-branch back into trunk. Also, change patchBarry Warsaw2001-08-221-0/+3
| | | | level to 2.2a2+
* Silence warnings during test_osJeremy Hylton2001-08-201-0/+5
|
* Whitespace normalization, plus:Tim Peters2001-07-211-1/+1
| | | | | | + test_quopri.py relied on significant trailing spaces. Fixed. + test_dircache.py (still) doesn't work on Windows (directory mtime on Windows doesn't work like it does on Unix).
* Remove a couple of lines from the test that proved not to be portable toFred Drake2001-07-171-2/+0
| | | | all platforms that offer tempnam().
* Start of a test suite for the "os" module -- this only tests the temporaryFred Drake2001-07-171-0/+60
file management functions that have just been made available on more platforms.