Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Remove the last usage of statvfs in the stdlib. | Brett Cannon | 2008-05-16 | 1 | -10/+6 |
| | |||||
* | Patch #2232: os.tmpfile might fail on Windows if the user has no | Martin v. Löwis | 2008-03-06 | 1 | -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 Brandl | 2008-01-19 | 1 | -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öwis | 2007-08-30 | 1 | -4/+14 |
| | |||||
* | Whitespace normalization. Ugh, we really need to do this more often. | Neal Norwitz | 2007-04-25 | 1 | -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 Seilnacht | 2007-04-04 | 1 | -25/+18 |
| | | | | MakedirTests.setUp() can now be removed. | ||||
* | Bug #1686475: Support stat'ing open files on Windows again. | Martin v. Löwis | 2007-04-04 | 1 | -0/+9 |
| | | | | Will backport to 2.5. | ||||
* | Shut up an occaisonal buildbot error due to test files being left around. | Collin Winter | 2007-03-31 | 1 | -0/+8 |
| | |||||
* | New test for rev. 54407 which only uses directories under TESTFN. | Georg Brandl | 2007-03-21 | 1 | -19/+47 |
| | |||||
* | Try backing out 54407 to see if it corrects the problems on the Windows | Neal Norwitz | 2007-03-20 | 1 | -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 to | Georg Brandl | 2007-03-16 | 1 | -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öwis | 2006-10-15 | 1 | -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öwis | 2006-10-15 | 1 | -1/+1 |
| | |||||
* | Patch #1576166: Support os.utime for directories on Windows NT+. | Martin v. Löwis | 2006-10-15 | 1 | -0/+7 |
| | |||||
* | Bug #1565150: Fix subsecond processing for os.utime on Windows. | Martin v. Löwis | 2006-10-09 | 1 | -0/+8 |
| | |||||
* | Whitespace normalization. | Tim Peters | 2006-07-03 | 1 | -1/+1 |
| | |||||
* | Correct arithmetic in access on Win32. Fixes #1513646. | Martin v. Löwis | 2006-07-02 | 1 | -0/+14 |
| | |||||
* | Port access, chmod, parts of getcwdu, mkdir, and utime to direct Win32 API. | Martin v. Löwis | 2006-05-06 | 1 | -0/+12 |
| | |||||
* | Implement os.{chdir,rename,rmdir,remove} using Win32 directly. | Martin v. Löwis | 2006-05-04 | 1 | -1/+17 |
| | |||||
* | Avoid using items() in environ.update(). Fixes #1124513. | Martin v. Löwis | 2005-02-17 | 1 | -1/+1 |
| | | | | Will backport to 2.4. | ||||
* | Revert os.py 1.75, and directly implement update. | Martin v. Löwis | 2005-01-29 | 1 | -0/+7 |
| | | | | Fixes #1110478 and #1100235. | ||||
* | Truncate st_?time before comparing it with ST_?TIME in the tests. | Martin v. Löwis | 2005-01-23 | 1 | -1/+5 |
| | |||||
* | Whitespace normalization. | Tim Peters | 2004-08-29 | 1 | -1/+1 |
| | |||||
* | Patch #934711: Expose platform-specific entropy. | Martin v. Löwis | 2004-08-29 | 1 | -0/+11 |
| | |||||
* | test_devnull(): Use assertEqual() instead of an assert stmt. | Tim Peters | 2004-06-08 | 1 | -1/+1 |
| | |||||
* | Feature request #935915: Add os.path.devnull. | Martin v. Löwis | 2004-06-08 | 1 | -0/+9 |
| | |||||
* | Rename class attribute containing the class to be tested, so the name is the | Walter Dörwald | 2004-06-02 | 1 | -1/+1 |
| | | | | same as for the string and sequence tests. | ||||
* | Port the dictionary tests from test_types.py to unittest. Collect as much | Walter Dörwald | 2004-05-31 | 1 | -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 Peters | 2004-01-18 | 1 | -3/+3 |
| | |||||
* | As part of fixing bug #829532, add a test case that exercises os.makedirs | Andrew M. Kuchling | 2003-12-23 | 1 | -1/+36 |
| | |||||
* | Fix a bunch of typos in documentation, docstrings and comments. | Walter Dörwald | 2003-10-20 | 1 | -1/+1 |
| | | | | (From SF patch #810751) | ||||
* | Combine the functionality of test_support.run_unittest() | Walter Dörwald | 2003-05-01 | 1 | -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 Peters | 2003-04-28 | 1 | -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_support | Raymond Hettinger | 2003-04-27 | 1 | -9/+5 |
| | |||||
* | New generator os.walk() does a bit more than os.path.walk() does, and | Tim Peters | 2003-04-25 | 1 | -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 DictMixin | Raymond Hettinger | 2003-03-09 | 1 | -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 Rossum | 2002-08-22 | 1 | -3/+5 |
| | |||||
* | Get rid of relative imports in all unittests. Now anything that | Barry Warsaw | 2002-07-23 | 1 | -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öwis | 2002-06-11 | 1 | -1/+7 |
| | |||||
* | Tighten up some warning filters, and break some dependencies on the | Tim Peters | 2002-04-16 | 1 | -2/+2 |
| | | | | order in which the tests are normally run. | ||||
* | Whitespace normalization. | Tim Peters | 2001-10-18 | 1 | -2/+2 |
| | |||||
* | The assignment to result.st_rdev can raise AttributeError as well as | Guido van Rossum | 2001-10-18 | 1 | -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 Rossum | 2001-10-18 | 1 | -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. This | Fred Drake | 2001-09-20 | 1 | -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 patch | Barry Warsaw | 2001-08-22 | 1 | -0/+3 |
| | | | | level to 2.2a2+ | ||||
* | Silence warnings during test_os | Jeremy Hylton | 2001-08-20 | 1 | -0/+5 |
| | |||||
* | Whitespace normalization, plus: | Tim Peters | 2001-07-21 | 1 | -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 to | Fred Drake | 2001-07-17 | 1 | -2/+0 |
| | | | | all platforms that offer tempnam(). | ||||
* | Start of a test suite for the "os" module -- this only tests the temporary | Fred Drake | 2001-07-17 | 1 | -0/+60 |
file management functions that have just been made available on more platforms. |