summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_os.py
Commit message (Collapse)AuthorAgeFilesLines
...
* | | Issue #18904: Improve os.get/set_inheritable() testsVictor Stinner2013-09-081-7/+29
| | |
* | | Issue #18571: Implementation of the PEP 446: file descriptors and file handlesVictor Stinner2013-08-271-0/+67
| | | | | | | | | | | | | | | are now created non-inheritable; add functions os.get/set_inheritable(), os.get/set_handle_inheritable() and socket.socket.get/set_inheritable().
* | | Issue #18756: make test_urandom_failure more robust by executing its code in ↵Antoine Pitrou2013-08-241-10/+19
|\ \ \ | |/ / | | | | | | a subprocess
| * | Issue #18756: make test_urandom_failure more robust by executing its code in ↵Antoine Pitrou2013-08-241-10/+19
| | | | | | | | | | | | a subprocess
* | | (Merge 3.3) Close #17702: On error, os.environb now removes suppress the exceptVictor Stinner2013-08-231-0/+3
|\ \ \ | |/ / | | | | | | context when raising a new KeyError with the original key.
| * | Close #17702: On error, os.environb now removes suppress the except contextVictor Stinner2013-08-231-0/+3
| | | | | | | | | | | | when raising a new KeyError with the original key.
* | | Issue #18756: Improve error reporting in os.urandom() when the failure is ↵Antoine Pitrou2013-08-161-0/+20
|\ \ \ | |/ / | | | | | | due to something else than /dev/urandom not existing.
| * | Issue #18756: Improve error reporting in os.urandom() when the failure is ↵Antoine Pitrou2013-08-161-0/+20
| | | | | | | | | | | | due to something else than /dev/urandom not existing.
* | | (Merge 3.3) Issue #18296: Try to fix TestSendfile.test_trailers() of test_os ↵Victor Stinner2013-08-151-4/+5
|\ \ \ | |/ / | | | | | | on FreeBSD
| * | Issue #18296: Try to fix TestSendfile.test_trailers() of test_os on FreeBSDVictor Stinner2013-08-151-4/+5
| | |
* | | Issue #15301: skip new test method so Windows builtbots stop failing.Terry Jan Reedy2013-08-111-0/+1
| | |
* | | Issue #15301: Parsing fd, uid, and gid parameters for builtinsLarry Hastings2013-08-081-0/+12
| | | | | | | | | | | | in Modules/posixmodule.c is now far more robust.
* | | Merge with 3.3Jason R. Coombs2013-05-281-1/+1
|\ \ \ | |/ /
| * | Use simple call to os.symlink for broken link (intended for previous commit)Jason R. Coombs2013-05-281-1/+1
| | |
* | | Merge with 3.3Jason R. Coombs2013-05-281-8/+36
|\ \ \ | |/ /
| * | 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 #17914: Add os.cpu_count(). Patch by Yogesh Chaudhari, based on anCharles-Francois Natali2013-05-201-0/+10
| | | | | | | | | | | | initial patch by Trent Nelson.
* | | (Merge 3.3) Issue #17702: use assertRaises() for the unit testVictor Stinner2013-04-141-10/+4
|\ \ \ | |/ /
| * | Issue #17702: use assertRaises() for the unit testVictor Stinner2013-04-141-10/+4
| | |
* | | (Merge 3.3) Close #17702: os.environ now raises KeyError with the originalVictor Stinner2013-04-141-0/+18
|\ \ \ | |/ / | | | | | | | | | environment variable name (str on UNIX), instead of using the encoded name (bytes on UNIX).
| * | 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).
* | | Merge 3.3.Stefan Krah2013-01-171-3/+6
|\ \ \ | |/ /
| * | Issue #14110: Fix test failures on FreeBSD if the user is in the wheel group.Stefan Krah2013-01-171-3/+6
| | |
* | | (Merge 3.3) Issue #9644: Add a test on os.statvfs() for the PEP 383Victor Stinner2013-01-011-0/+9
|\ \ \ | |/ /
| * | 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
| |\ \ | | |/
| | * Add test coverage for os.removedirs (#16775)Andrew Svetlov2012-12-251-0/+46
| | |
* | | Use OESeeror instead of os.error (#16720)Andrew Svetlov2012-12-241-6/+6
| | | | | | | | | | | | Patch by Serhiy Storchaka.
* | | Issue #16719: Get rid of WindowsError. Use OSError insteadAndrew Svetlov2012-12-191-9/+9
| | | | | | | | | | | | Patch by Serhiy Storchaka.
* | | 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 #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
| | |
* | | Issue #15478: os.lchflags() is not always available when os.chflags() is ↵Victor Stinner2012-11-131-4/+3
| | | | | | | | | | | | available
* | | Issue #16414: Fix test_os on Windows, don't test os.listdir() with undecodableVictor Stinner2012-11-061-1/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | With the ANSI code page 932, os.listdir(b'\xe7') return an empty list (instead of failing), whereas os.listdir(b'\xff') raises a FileNotFoundError. It looks like a Windows bug: b'\xe7' directory does not exist, FindFirstFileA(b'\xe7') fails with ERROR_FILE_NOT_FOUND (2), instead of ERROR_PATH_NOT_FOUND (3).
* | | Issue #16414: Add support.FS_NONASCII and support.TESTFN_NONASCIIVictor Stinner2012-11-061-0/+4
| | | | | | | | | | | | | | | These constants are used to test functions with non-ASCII data, especially filenames.
* | | Issue #15478: Use source filename in OSError, not destination filenameVictor Stinner2012-10-311-36/+50
| | | | | | | | | | | | | | | | | | | | | | | | And other fixes for Windows: * rename, replace and link require arguments of the same type on Windows * readlink only supports unicode filenames on Windows * os.open() specifies the filename on OSError
* | | Issue #15478: Fix again to fix test_os on WindowsVictor Stinner2012-10-311-4/+7
| | |
* | | Issue #15478: Fix test_os on FreeBSDVictor Stinner2012-10-311-1/+1
| | | | | | | | | | | | | | | Calling OS functions can fail with errors other than FileNotFoundError: a FreeBSD buildbot fails for example with a PermissionError.
* | | Issue #15478: Fix test_os on Windows (os.chown is missing)Victor Stinner2012-10-311-1/+2
| | |
* | | Issue #15478: Raising an OSError doesn't decode or encode the filename anymoreVictor Stinner2012-10-301-0/+71
|/ / | | | | | | | | | | | | Pass the original filename argument to OSError constructor, instead of trying to encode it to or decode it from the filesystem encoding. This change avoids an additionnal UnicodeDecodeError on Windows if the filename cannot be decoded from the filesystem encoding (ANSI code page).
* | #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().