summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_os.py
Commit message (Collapse)AuthorAgeFilesLines
* Backed out changeset 19a3e0e664afSerhiy Storchaka2016-03-081-5/+1
|
* Issues #23808, #25911: Trying to fix walk tests on Windows.Serhiy Storchaka2016-03-081-1/+5
| | | | On Windows a symlink can has the FILE_ATTRIBUTE_DIRECTORY flag.
* Issue #25583: Avoid incorrect errors raised by os.makedirs(exist_ok=True)Martin Panter2015-11-191-0/+3
|
* Issue #25523: Correct "a" article to "an" articleMartin Panter2015-11-021-1/+1
| | | | | | This changes the main documentation, doc strings, source code comments, and a couple error messages in the test suite. In some cases the word was removed or edited some other way to fix the grammar.
* Marked keystrokes with the :kbd: role.Serhiy Storchaka2015-09-121-2/+2
| | | | Fixed the case of the "Ctrl-" prefixes.
* os.sendfile(headers=None, trailers=None) arguments are not actually acceptedMartin Panter2015-09-091-1/+1
| | | | Needs to be tested on a BSD.
* Issue #23738: Document and test actual keyword parameter namesMartin Panter2015-09-091-1/+22
| | | | Also fix signature because os.utime(..., ns=None) is not allowed.
* Issue #24675: Avoid DeprecationWarning in test_osVictor Stinner2015-07-201-2/+8
| | | | Patch written by Martin Panter. I replace tearDown() with addCleanup().
* Issue #15745: Rewrite os.utime() tests in test_osVictor Stinner2015-06-121-202/+210
| | | | | | | | | | * Don't use the timestamp of an existing file anymore, only use fixed timestamp * Enhance the code checking the resolution of the filesystem timestamps. * Check timestamps with a resolution of 1 microsecond instead of 1 millisecond * When os.utime() uses the current system clock, tolerate a delta of 20 ms. Before some os.utime() tolerated a different of 10 seconds. * Merge duplicated tests and simplify the code
* Issue #22585: make URandomFDTests test case actually runNed Deily2015-03-171-0/+1
|
* Issue #23605: Refactor os.walk() tests to also run them on os.fwalk()Victor Stinner2015-03-121-37/+70
|
* 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).