summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_os.py
Commit message (Collapse)AuthorAgeFilesLines
* Issue #22585: On OpenBSD 5.6 and newer, os.urandom() now calls getentropy(),Victor Stinner2014-12-211-0/+7
| | | | instead of reading /dev/urandom, to get pseudo-random bytes.
* Issue #22777: Test pickling with all protocols.Serhiy Storchaka2014-12-151-8/+14
|
* Issue #21207: Detect when the os.urandom cached fd has been closed or ↵Antoine Pitrou2014-04-261-0/+43
| | | | replaced, and open it anew.
* merge 3.3 (#21082)Benjamin Peterson2014-04-011-4/+3
|\
| * merge 3.2 (#21082)Benjamin Peterson2014-04-011-4/+3
| |\
| | * remove directory mode check from makedirs (closes #21082)Benjamin Peterson2014-04-011-4/+3
| | |
| | * Issue #16218, #16414, #16444: Backport FS_NONASCII, TESTFN_UNDECODABLE,Victor Stinner2013-01-031-0/+4
| | | | | | | | | | | | | | | TESTFN_NONASCII of test.support from Python 3.4. Backport tests on non-ASCII paths.
* | | (Merge 3.3) Issue #20113: os.readv() and os.writev() now raise an OSErrorVictor Stinner2014-01-081-0/+9
|\ \ \ | |/ / | | | | | | exception on error instead of returning -1.
| * | Issue #20113: os.readv() and os.writev() now raise an OSError exception onVictor Stinner2014-01-081-0/+9
| | | | | | | | | | | | error instead of returning -1.
* | | Issue 19572: More silently skipped tests explicitly skipped.Zachary Ware2013-12-081-1/+1
|\ \ \ | |/ /
| * | Issue 19572: More silently skipped tests explicitly skipped.Zachary Ware2013-12-081-2/+2
| | |
| * | Issue #18702: All skipped tests now reported as skipped.Serhiy Storchaka2013-11-031-246/+233
| | |
* | | Issue #18702: All skipped tests now reported as skipped.Serhiy Storchaka2013-11-031-245/+248
| | |
* | | Correct whitespace in test_osTim Golden2013-10-251-1/+1
| | |
* | | Issue13234 Allow listdir to handle extended paths on Windows (Patch by ↵Tim Golden2013-10-251-0/+47
| | | | | | | | | | | | Santoso Wijaya)
* | | test_os: report tests as skipped when os.statvfs() fails with ENOSYSVictor Stinner2013-10-111-2/+3
| | |
* | | Issue #19209: Remove import of copyreg from the os module to speed upChristian Heimes2013-10-111-0/+22
| | | | | | | | | | | | | | | | | | interpreter startup. stat_result and statvfs_result are now hard-coded to reside in the os module. The patch is based on Victor Stinner's patch.
* | | Issue #18904: test_os and test_socket use unittest.skipIf() to check if fcntlVictor Stinner2013-09-081-22/+23
| | | | | | | | | | | | module is present (to record skipped tests)
* | | 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.