summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_os.py
Commit message (Collapse)AuthorAgeFilesLines
* Remove the last usage of statvfs in the stdlib.Brett Cannon2008-05-161-10/+6
|
* Patch #2232: os.tmpfile might fail on Windows if the user has noMartin v. Löwis2008-03-061-0/+38
| | | | | permission to create files in the root directory. Will backport to 2.5.
* #1663329: add os.closerange() to close a range of fds,Georg Brandl2008-01-191-0/+6
| | | | | ignoring errors, and use this in subprocess to speed up subprocess creation in close_fds mode. Patch by Mike Klaas.
* Bug #1709599: Run test_1565150 only if the file system is NTFS.Martin v. Löwis2007-08-301-4/+14
|
* Whitespace normalization. Ugh, we really need to do this more often.Neal Norwitz2007-04-251-1/+1
| | | | You might want to review this change as it's my first time. Be gentle. :-)
* Fix WalkTests.test_traversal() on Windows. The cleanup inŽiga Seilnacht2007-04-041-25/+18
| | | | MakedirTests.setUp() can now be removed.
* Bug #1686475: Support stat'ing open files on Windows again.Martin v. Löwis2007-04-041-0/+9
| | | | Will backport to 2.5.
* Shut up an occaisonal buildbot error due to test files being left around.Collin Winter2007-03-311-0/+8
|
* New test for rev. 54407 which only uses directories under TESTFN.Georg Brandl2007-03-211-19/+47
|
* Try backing out 54407 to see if it corrects the problems on the WindowsNeal Norwitz2007-03-201-34/+6
| | | | | buildbots. This rev was backported, so we will need to keep both branches in sync, pending the outcome of the test after this checkin.
* Patch #1273829: os.walk() now has a "followlinks" parameter. If set toGeorg Brandl2007-03-161-6/+34
| | | | | True (which is not the default), it visits symlinks pointing to directories.
* Round to int, because some systems support sub-second time stamps in stat, ↵Martin v. Löwis2006-10-151-2/+4
| | | | | | but not in utime. Also be consistent with modifying only mtime, not atime.
* Loosen the test for equal time stamps.Martin v. Löwis2006-10-151-1/+1
|
* Patch #1576166: Support os.utime for directories on Windows NT+.Martin v. Löwis2006-10-151-0/+7
|
* Bug #1565150: Fix subsecond processing for os.utime on Windows.Martin v. Löwis2006-10-091-0/+8
|
* Whitespace normalization.Tim Peters2006-07-031-1/+1
|
* Correct arithmetic in access on Win32. Fixes #1513646.Martin v. Löwis2006-07-021-0/+14
|
* Port access, chmod, parts of getcwdu, mkdir, and utime to direct Win32 API.Martin v. Löwis2006-05-061-0/+12
|
* Implement os.{chdir,rename,rmdir,remove} using Win32 directly.Martin v. Löwis2006-05-041-1/+17
|
* Avoid using items() in environ.update(). Fixes #1124513.Martin v. Löwis2005-02-171-1/+1
| | | | Will backport to 2.4.
* Revert os.py 1.75, and directly implement update.Martin v. Löwis2005-01-291-0/+7
| | | | Fixes #1110478 and #1100235.
* Truncate st_?time before comparing it with ST_?TIME in the tests.Martin v. Löwis2005-01-231-1/+5
|
* 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.