summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_os.py
Commit message (Collapse)AuthorAgeFilesLines
* [2.7] bpo-30746: Prohibited the '=' character in environment variable names ↵Serhiy Storchaka2017-06-251-3/+81
| | | | | | | (GH-2382) (#2393) in `os.putenv()` and `os.spawn*()`.. (cherry picked from commit 77703942c5997dff00c48f10df1b29b11645624c)
* Correct spelling in documentation and code commentsMartin Panter2016-09-101-1/+1
|
* 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 to fix the grammar.
* Marked keystrokes with the :kbd: role.Serhiy Storchaka2015-09-121-2/+2
| | | | Fixed the case of the "Ctrl-" prefixes.
* Issue #23458: Remove test_os.test_urandom_fd_non_inheritable()Victor Stinner2015-04-061-31/+0
| | | | | | | | | os.urandom() only tries to make the os.random() file descriptor non inheritable, but there is no guarantee. The test fails on too many operating systems: Windows, OS X 10.5, OpenIndiana. This issue is correctly fixed in Python 3.4 with the PEP 446. Upgrade to Python 3.4 is you need stronger guarantees.
* Issue #23458: Skip test_urandom_fd_non_inheritable on OS X 10.4 sinceNed Deily2015-03-171-0/+2
| | | | FD_CLOEXEC is not supported there.
* Issue #22585, #23115: make URandomFDTests test case actually runNed Deily2015-03-171-0/+1
|
* Issue #23458: skip test_os.test_urandom_fd_non_inheritable() on WindowsVictor Stinner2015-02-241-0/+2
|
* Issue #23458: On POSIX, the file descriptor kept open by os.urandom() is nowVictor Stinner2015-02-241-0/+28
| | | | set to non inheritable
* use getentropy when available (backport of 75ede5bec8db) (closes #23115)Benjamin Peterson2014-12-261-0/+7
|
* Issue #19572: Replace a return that shouldn't have been removed from test_os.Zachary Ware2013-12-101-0/+1
| | | | This should fix the test_os failure on the AMD64 Windows 7 buildbot.
* Issue #19572: More silently skipped tests explicitly skipped.Zachary Ware2013-12-101-3/+2
|
* Fix test_os (issue #18702).Serhiy Storchaka2013-11-031-2/+2
|
* Issue #18702: All skipped tests now reported as skipped.Serhiy Storchaka2013-11-031-128/+125
|
* Issue #18756: make test_urandom_failure more robust by executing its code in ↵Antoine Pitrou2013-08-241-10/+20
| | | | a subprocess
* test_execvpe_with_bad_arglist shouldn't be in URandomTestsAntoine Pitrou2013-08-161-0/+5
|
* Issue #18756: Improve error reporting in os.urandom() when the failure is ↵Antoine Pitrou2013-08-161-0/+18
| | | | due to something else than /dev/urandom not existing.
* Issue #16714: use 'raise' exceptions, don't 'throw'.Andrew Svetlov2012-12-181-8/+8
| | | | Patch by Serhiy Storchaka.
* Fix sporadic test_os failure under WindowsAntoine Pitrou2012-02-221-2/+5
|
* Fix flaky os.urandom test.Antoine Pitrou2012-02-211-3/+4
|
* this was supposed to dieBenjamin Peterson2012-02-211-14/+0
|
* merge 2.6 with hash randomization fixBenjamin Peterson2012-02-211-2/+36
|\
| * - Issue #13703: oCERT-2011-003: add -R command-line option and PYTHONHASHSEEDBarry Warsaw2012-02-211-12/+42
| | | | | | | | | | | | environment variable, to provide an opt-in way to protect against denial of service attacks due to hash collisions within the dict and set types. Patch by David Malcolm, based on work by Victor Stinner.
| * Fix buildbot failure in test_os.pyEzio Melotti2010-08-031-2/+1
| |
| * Fix deprecation warnings in test_os.pyEzio Melotti2010-08-031-8/+10
| |
| * Revert r79131Matthias Klose2010-03-211-3/+0
| | | | | | | | - Issue #1039, #8154: Fix os.execlp() crash with missing 2nd argument.
| * Merged revisions 79096 via svnmerge fromMatthias Klose2010-03-201-0/+3
| | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r79096 | matthias.klose | 2010-03-19 15:45:06 +0100 (Fr, 19 Mär 2010) | 2 lines - Issue #1039, #8154: Fix os.execlp() crash with missing 2nd argument. ........
| * Merged revisions 78718 via svnmerge fromGregory P. Smith2010-03-071-2/+16
| | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r78718 | gregory.p.smith | 2010-03-05 23:35:19 -0800 (Fri, 05 Mar 2010) | 3 lines Call setreuid and setregid in a subprocess to avoid altering the test runner's process state. Should fix issue8045. ........
| * Merged revisions 78546 via svnmerge fromGregory P. Smith2010-03-011-0/+2
| | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r78546 | gregory.p.smith | 2010-02-28 21:43:43 -0800 (Sun, 28 Feb 2010) | 3 lines Fixes issue #7999: os.setreuid() and os.setregid() would refuse to accept a -1 parameter on some platforms such as OS X. ........
| * Remove unittest.SkipTest from backport of test for issue 6542.R. David Murray2009-07-271-2/+3
| |
| * Merged revisions 74175 via svnmerge fromR. David Murray2009-07-221-1/+12
| | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r74175 | r.david.murray | 2009-07-22 13:22:58 -0400 (Wed, 22 Jul 2009) | 4 lines Backport of fix for issue 6542: make sure test_os.TestInvalidFD.test_closerange does not close any valid file descriptors. ........
| * Merged revisions 71299 via svnmerge fromGregory P. Smith2009-04-061-1/+44
| | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r71299 | gregory.p.smith | 2009-04-05 16:43:58 -0700 (Sun, 05 Apr 2009) | 3 lines Fixes issue5705: os.setuid() and friends did not accept the same range of values that pwd.getpwnam() returns. ........
| * Merged revisions 68779 via svnmerge fromBenjamin Peterson2009-01-191-13/+18
| | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r68779 | benjamin.peterson | 2009-01-19 11:37:42 -0600 (Mon, 19 Jan 2009) | 1 line make bad file descriptor tests more robust ........
| * Merged revisions 68610,68621-68622,68649 via svnmerge fromBenjamin Peterson2009-01-191-10/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r68610 | kristjan.jonsson | 2009-01-15 03:09:13 -0600 (Thu, 15 Jan 2009) | 3 lines Fix recently introduced test cases. For datetime, gentoo didn't seem to mind the %e format for strftime. So, we just excercise those instead making sure that we don't crash. For test_os, two cases were incorrect. ........ r68621 | kristjan.jonsson | 2009-01-15 16:40:03 -0600 (Thu, 15 Jan 2009) | 1 line Fix two test cases in test_os. ftruncate raises IOError unlike all the others which raise OSError. And close() on some platforms doesn't complain when given an invalid file descriptor. ........ r68622 | kristjan.jonsson | 2009-01-15 16:46:26 -0600 (Thu, 15 Jan 2009) | 1 line Make all the invalid fd tests for os subject to the function being available. ........ r68649 | benjamin.peterson | 2009-01-16 22:39:05 -0600 (Fri, 16 Jan 2009) | 1 line trying to find some fpathconf() settings that all unixs support... ........
| * Merged revisions ↵Georg Brandl2009-01-141-1/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 68521,68527,68534-68536,68540,68547,68552,68563,68570,68572,68575,68579-68580,68584 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r68521 | hirokazu.yamamoto | 2009-01-11 04:28:13 +0100 (So, 11 Jan 2009) | 1 line Fixed version number in build_ssl.bat. ........ r68527 | martin.v.loewis | 2009-01-11 10:43:55 +0100 (So, 11 Jan 2009) | 2 lines Issue #4895: Use _strdup on Windows CE. ........ r68534 | gregory.p.smith | 2009-01-11 18:53:33 +0100 (So, 11 Jan 2009) | 2 lines correct email address ........ r68535 | gregory.p.smith | 2009-01-11 18:57:54 +0100 (So, 11 Jan 2009) | 9 lines Update the documentation for binascii and zlib crc32/adler32 functions to better describe the signed vs unsigned return value behavior on different platforms and versions of python. Mention the workaround to make them all return the same thing by using & 0xffffffff. Fixes issue4903. Also needs to be merged into release26-maint, release30-maint, & py3k. ........ r68536 | benjamin.peterson | 2009-01-11 20:48:15 +0100 (So, 11 Jan 2009) | 1 line add email addresses ........ r68540 | martin.v.loewis | 2009-01-12 08:57:11 +0100 (Mo, 12 Jan 2009) | 2 lines Issue #4915: Port sysmodule to Windows CE. ........ r68547 | kristjan.jonsson | 2009-01-12 19:09:27 +0100 (Mo, 12 Jan 2009) | 1 line Add tests for invalid format specifiers in strftime, and for handling of invalid file descriptors in the os module. ........ r68552 | vinay.sajip | 2009-01-12 21:36:18 +0100 (Mo, 12 Jan 2009) | 1 line Minor changes/corrections in markup. ........ r68563 | benjamin.peterson | 2009-01-13 02:49:10 +0100 (Di, 13 Jan 2009) | 1 line small logic correction ........ r68570 | raymond.hettinger | 2009-01-13 10:08:32 +0100 (Di, 13 Jan 2009) | 5 lines Issue 4922: Incorrect comments for MutableSet.add() and MutableSet.discard(). Needs to be backported to 2.6 and forward ported to 3.0 and 3.1. ........ r68572 | andrew.kuchling | 2009-01-13 14:40:54 +0100 (Di, 13 Jan 2009) | 1 line Note that first coord. is left alone ........ r68575 | thomas.heller | 2009-01-13 18:32:28 +0100 (Di, 13 Jan 2009) | 1 line Fix refcount leak in error cases. Bug found by coverity. ........ r68579 | benjamin.peterson | 2009-01-13 22:42:23 +0100 (Di, 13 Jan 2009) | 1 line make bytearrayobject.o depend on the stringlib #4936 ........ r68580 | benjamin.peterson | 2009-01-13 22:43:11 +0100 (Di, 13 Jan 2009) | 1 line add bytearrayobject.h to PYTHON_HEADERS ........ r68584 | benjamin.peterson | 2009-01-13 23:22:41 +0100 (Di, 13 Jan 2009) | 1 line de-spacify ........
* | Issue #13415: Skip test_os.test_unset_error on FreeBSD and OS X.Charles-François Natali2011-11-271-0/+4
| |
* | Issue #13436: Fix unsetenv() test on WindowsVictor Stinner2011-11-221-1/+2
| |
* | Issue #13415: os.unsetenv() doesn't ignore errors anymore.Victor Stinner2011-11-221-0/+9
| |
* | #11515: fix several typos. Patch by Piotr Kasprzyk.Ezio Melotti2011-03-151-2/+2
| |
* | Merged revisions 87666 via svnmerge fromAmaury Forgeot d'Arc2011-01-031-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r87666 | amaury.forgeotdarc | 2011-01-03 01:19:11 +0100 (lun., 03 janv. 2011) | 4 lines #8278: In the Windows implementation of stat() and utime(), use time_t instead of int. This gives support for dates after 2038, at least when compiled with VS2003 or later, where time_t is 64bit. ........
* | Issue #4662: os.tempnam(), os.tmpfile() and os.tmpnam() now raise a py3kAntoine Pitrou2011-01-021-59/+67
| | | | | | | | DeprecationWarning.
* | Merged revisions 86596 via svnmerge fromEzio Melotti2010-11-211-9/+9
| | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r86596 | ezio.melotti | 2010-11-20 21:04:17 +0200 (Sat, 20 Nov 2010) | 1 line #9424: Replace deprecated assert* methods in the Python test suite. ........
* | Merged revisions 86198 via svnmerge fromBrian Curtin2010-11-051-0/+3
| | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r86198 | brian.curtin | 2010-11-05 10:17:11 -0500 (Fri, 05 Nov 2010) | 2 lines Close subprocess pipes in _kill. Fixes a number of ResourceWarnings. ........
* | Backport r85525 from #10098.Brian Curtin2010-11-051-1/+1
| |
* | Merged revisions 85987 via svnmerge fromBrian Curtin2010-10-301-2/+3
| | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r85987 | brian.curtin | 2010-10-30 16:24:21 -0500 (Sat, 30 Oct 2010) | 2 lines Fix #10257. Clear resource warnings by using os.popen's context manager. ........
* | Merged revisions 85315 via svnmerge fromHirokazu Yamamoto2010-10-081-2/+14
| | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r85315 | hirokazu.yamamoto | 2010-10-08 17:38:15 +0900 | 1 line Issue #9978: Wait until subprocess completes initialization. (Win32KillTests in test_os) ........
* | an AttributeError is perfectly acceptable hereBenjamin Peterson2010-06-301-1/+1
| |
* | mark test depending on ref countingBenjamin Peterson2010-06-301-0/+1
| |
* | Fix #8405 for slow buildbots. Remove the sleep on startup and move theBrian Curtin2010-05-281-11/+16
| | | | | | | | pipe communication into a loop to retry in case a buildbot gets even slower.
* | Fix os.kill tests to be more robust and work with slower machines.Brian Curtin2010-04-151-6/+44
| | | | | | | | | | | | | | | | | | Rather than depending on some sleep value, start up an interpreter as a subprocess and communicate with it. Because subprocess pipes can't be read from until EOF and I want to read from them before that, use ctypes to peek by using PeekNamedPipe. Once the subprocess has written the message, then it is ready to roll and accept signals. After that, kill it.