summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_os.py
Commit message (Collapse)AuthorAgeFilesLines
* Whitespace normalization.Tim Peters2004-08-291-1/+1
|
* Patch #934711: Expose platform-specific entropy.Martin v. Löwis2004-08-291-0/+11
|
* test_devnull(): Use assertEqual() instead of an assert stmt.Tim Peters2004-06-081-1/+1
|
* Feature request #935915: Add os.path.devnull.Martin v. Löwis2004-06-081-0/+9
|
* Rename class attribute containing the class to be tested, so the name is theWalter Dörwald2004-06-021-1/+1
| | | | same as for the string and sequence tests.
* Port the dictionary tests from test_types.py to unittest. Collect as muchWalter Dörwald2004-05-311-2/+2
| | | | | | mapping tests as possible in mapping_test.py and reuse the tests in test_dict.py, test_userdict.py, test_weakref.py, test_os.py and test_shelve.py. From SF patch #736962.
* Whitespace normalization.Tim Peters2004-01-181-3/+3
|
* As part of fixing bug #829532, add a test case that exercises os.makedirsAndrew M. Kuchling2003-12-231-1/+36
|
* Fix a bunch of typos in documentation, docstrings and comments.Walter Dörwald2003-10-201-1/+1
| | | | (From SF patch #810751)
* Combine the functionality of test_support.run_unittest()Walter Dörwald2003-05-011-24/+25
| | | | | | | | | | and test_support.run_classtests() into run_unittest() and use it wherever possible. Also don't use "from test.test_support import ...", but "from test import test_support" in a few spots. From SF patch #662807.
* SF bug 728097: tmpnam problems on windows 2.3b, breaks test.test_os.Tim Peters2003-04-281-1/+22
| | | | | | | | | tmpnam() appears essentially useless on Windows, and it finally broke the test for Irmen de Jong. Read the long new comment in test_tmpnam() for details. Since the MS implementation is insane, it might be good if we supplied a different implementation. Bugfix candidate.
* Factor out common boilerplate for test_supportRaymond Hettinger2003-04-271-9/+5
|
* New generator os.walk() does a bit more than os.path.walk() does, andTim Peters2003-04-251-3/+85
| | | | | seems much easier to use. Code, docs, NEWS, and additions to test_os.py (testing this sucker is a bitch!).
* SF patch #667730: More DictMixinRaymond Hettinger2003-03-091-0/+18
| | | | | | | | * Adds missing pop() methods to weakref.py * Expands test suite to broaden coverage of objects with a mapping interface. Contributed by Sebastien Keim.
* Standardize behavior: create a single suite merging all test cases.Guido van Rossum2002-08-221-3/+5
|
* 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. :)
* Patch #488073: AtheOS port.Martin v. Löwis2002-06-111-1/+7
|
* Tighten up some warning filters, and break some dependencies on theTim Peters2002-04-161-2/+2
| | | | order in which the tests are normally run.
* Whitespace normalization.Tim Peters2001-10-181-2/+2
|
* The assignment to result.st_rdev can raise AttributeError as well asGuido van Rossum2001-10-181-1/+1
| | | | | TypeError (on systems where it's not defined at all, it raises AttributeError; when it's defined, assignment to it raises TypeError).
* 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.