summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_os.py
Commit message (Collapse)AuthorAgeFilesLines
* Use simple call to os.symlink for broken link (intended for previous commit)Jason R. Coombs2013-05-281-1/+1
|
* Issue #13772: Restored directory detection of targets in `os.symlink` on ↵Jason R. Coombs2013-05-281-8/+36
| | | | Windows, which was temporarily removed in Python 3.2.3 due to an incomplete implementation. The implementation now works even if the symlink is created in a location other than the current directory.
* Issue #17702: use assertRaises() for the unit testVictor Stinner2013-04-141-10/+4
|
* Close #17702: os.environ now raises KeyError with the original environmentVictor Stinner2013-04-141-0/+18
| | | | variable name (str on UNIX), instead of using the encoded name (bytes on UNIX).
* Issue #14110: Fix test failures on FreeBSD if the user is in the wheel group.Stefan Krah2013-01-171-3/+6
|
* Issue #9644: Add a test on os.statvfs() for the PEP 383Victor Stinner2013-01-011-0/+9
|\
| * Issue #9644: Fix the encoding used by os.statvfs(): use the filesystem encodingVictor Stinner2013-01-011-0/+9
| | | | | | | | with the surrogateescape error handler, instead of UTF-8 in strict mode.
* | Add test coverage for os.removedirs (#16775)Andrew Svetlov2012-12-251-0/+46
|\ \ | |/
| * Add test coverage for os.removedirs (#16775)Andrew Svetlov2012-12-251-0/+46
| |
* | Issue #16714: use 'raise' exceptions, don't 'throw'.Andrew Svetlov2012-12-181-8/+8
|\ \ | |/ | | | | Patch by Serhiy Storchaka.
| * Issue #16714: use 'raise' exceptions, don't 'throw'.Andrew Svetlov2012-12-181-8/+8
| | | | | | | | Patch by Serhiy Storchaka.
* | Issue #16218, #16444: Backport improvment on tests for non-ASCII charactersVictor Stinner2012-11-121-0/+4
| |
* | #1087: use proper skips in test_os.Ezio Melotti2012-09-261-13/+13
| |
* | Issue #14992: merge from 3.2Ned Deily2012-08-091-1/+4
|\ \ | |/
| * Issue #14992: Prevent test_os test_exist_ok_s_isgid_directory test caseNed Deily2012-08-091-1/+4
| | | | | | | | failure on OS X built with 10.4 ABI.
* | Issue #15202: Consistently use the name "follow_symlinks" forLarry Hastings2012-07-151-7/+8
| | | | | | | | new parameters in os and shutil functions. Patch by Serhiy Storchaka.
* | Issue #15261: Stop os.stat(fd) crashing on Windows when fd not open.Richard Oudkerk2012-07-061-0/+13
| |
* | Issue #15177: Added dir_fd parameter to os.fwalk().Larry Hastings2012-06-251-5/+24
| |
* | Closes #15161: add support for giving path as a fd for truncate() and ↵Georg Brandl2012-06-241-0/+2
| | | | | | | | pathconf().
* | Issue #15154: Add "dir_fd" parameter to os.rmdir, remove "rmdir"Larry Hastings2012-06-231-1/+4
| | | | | | | | | | | | | | parameter from os.remove / os.unlink. Patch written by Georg Brandl. (I'm really looking forward to George getting commit privileges so I don't have to keep doing checkins on his behalf.)
* | Issue #14626: Large refactoring of functions / parameters in the os module.Larry Hastings2012-06-221-83/+85
| | | | | | | | | | | | | | | | | | Many functions now support "dir_fd" and "follow_symlinks" parameters; some also support accepting an open file descriptor in place of of a path string. Added os.support_* collections as LBYL helpers. Removed many functions only previously seen in 3.3 alpha releases (often starting with "f" or "l", or ending with "at"). Originally suggested by Serhiy Storchaka; implemented by Larry Hastings.
* | Issue #14711: os.stat_float_times() has been deprecated.Victor Stinner2012-06-041-2/+6
| |
* | Fixes Issue #14992: os.makedirs(path, exist_ok=True) would raise an OSErrorGregory P. Smith2012-06-031-0/+25
|\ \ | |/ | | | | | | | | when the path existed and had the S_ISGID mode bit set when it was not explicitly asked for. This is no longer an exception as mkdir cannot control if the OS sets that bit for it or not.
| * Fixes Issue #14992: os.makedirs(path, exist_ok=True) would raise an OSErrorGregory P. Smith2012-06-031-6/+34
| | | | | | | | | | | | when the path existed and had the S_ISGID mode bit set when it was not explicitly asked for. This is no longer an exception as mkdir cannot control if the OS sets that bit for it or not.
* | Add two more sorts to test_os.WalkTests I've missed beforeHynek Schlawack2012-05-151-0/+2
| |
* | Sort file list in test_os.WalkTestsHynek Schlawack2012-05-151-0/+1
| | | | | | | | | | Adding new files into the tree lead to buildbot fails as the order wasn't deterministic.
* | #14773: Fix os.fwalk() failing on dangling symlinksHynek Schlawack2012-05-151-1/+5
| |
* | Issue #14082: shutil.copy2() now copies extended attributes, if possible.Antoine Pitrou2012-05-121-19/+1
| | | | | | | | Patch by Hynek Schlawack.
* | Issue #14127: Add ns= parameter to utime, futimes, and lutimes.Larry Hastings2012-05-031-14/+72
| | | | | | | | | | | | Removed futimens as it is now redundant. Changed shutil.copystat to use st_atime_ns and st_mtime_ns from os.stat and ns= parameter to utime--it once again preserves exact metadata on Linux!
* | Issue #14127: Add st_{cma}time_ns fields to os.stat() result object.Larry Hastings2012-04-191-0/+7
| |
* | all OSErrors should indicate there are no extended attributes (closes #14358)Benjamin Peterson2012-03-191-3/+1
| |
* | update skip reasonPhilip Jenvey2012-03-011-1/+1
| |
* | also skip test_device_encoding when stdin isn't a ttyPhilip Jenvey2012-03-011-2/+2
| |
* | Issue #14153 Create _Py_device_encoding() to prevent _io from having to importBrett Cannon2012-02-291-0/+19
| | | | | | | | the os module.
* | Merge 3.2: Issue #13703 plus some related test suite fixes.Georg Brandl2012-02-201-8/+28
|\ \ | |/
| * Merge from 3.1: Issue #13703: add a way to randomize the hash values of ↵Georg Brandl2012-02-201-8/+28
| |\ | | | | | | | | | | | | | | | | | | | | | | | | basic types (str, bytes, datetime) in order to make algorithmic complexity attacks on (e.g.) web apps much more complicated. The environment variable PYTHONHASHSEED and the new command line flag -R control this behavior.
| | * Issue #13703: add a way to randomize the hash values of basic types (str, ↵Georg Brandl2012-02-201-8/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | bytes, datetime) in order to make algorithmic complexity attacks on (e.g.) web apps much more complicated. The environment variable PYTHONHASHSEED and the new command line flag -R control this behavior.
* | | get_terminal_size() can also fail with ENOTTY if the fd is not connected to ↵Antoine Pitrou2012-02-081-2/+9
| | | | | | | | | | | | a terminal.
* | | Relax tests to fix buildbot failureAntoine Pitrou2012-02-081-2/+2
| | |
* | | Issue #13609: Add two functions to query the terminal size:Antoine Pitrou2012-02-081-0/+38
| | | | | | | | | | | | | | | os.get_terminal_size (low level) and shutil.get_terminal_size (high level). Patch by Zbigniew Jędrzejewski-Szmek.
* | | Backout f8409b3d6449: the PEP 410 is not accepted yetVictor Stinner2012-02-081-31/+0
| | |
* | | PEP 410Victor Stinner2012-02-081-0/+31
| | |
* | | Issue #13964: Skip os.*utime*() tests if os.stat() doesn't support timestampVictor Stinner2012-02-081-0/+11
| | | | | | | | | | | | with a subsecond resolution
* | | Issue #13964: Split os.*utime*() subsecond tests into multiple tests to helpVictor Stinner2012-02-081-38/+75
| | | | | | | | | | | | debugging
* | | Issue #13964: Test also os.futimesat()Victor Stinner2012-02-081-1/+8
| | |
* | | Issue #13964: Write tests for new os.*utime*() functionsVictor Stinner2012-02-081-0/+37
| | |
* | | Following Nick's suggestion, rename posix.fdlistdir() to posix.flistdir(), toCharles-François Natali2012-02-061-2/+2
| | | | | | | | | | | | | | | be consistent with other functions accepting file descriptors (fdlistdir() was added in 3.3, so hasn't been released yet).
* | | Issue #13734: Add os.fwalk(), a directory walking function yielding fileCharles-François Natali2012-02-051-2/+58
| | | | | | | | | | | | descriptors.
* | | Issue #8828: Add new function os.replace(), for cross-platform renaming with ↵Antoine Pitrou2012-01-301-0/+12
| | | | | | | | | | | | overwriting.
* | | Issue #13772: In os.symlink() under Windows, do not try to guess the linkAntoine Pitrou2012-01-241-2/+7
|\ \ \ | |/ / | | | | | | | | | target's type (file or directory). The detection was buggy and made the call non-atomic (therefore prone to race conditions).