summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_os.py
Commit message (Collapse)AuthorAgeFilesLines
* Back port from 2.7:Barry Warsaw2012-02-221-2/+5
| | | | | | | | | http://hg.python.org/cpython/rev/48705250232c changeset: 75187:48705250232c branch: 2.7 parent: 75184:9a1d902714ae user: Antoine Pitrou <solipsis@pitrou.net> date: Wed Feb 22 22:16:25 2012 +0100
* Backport from 2.7:Barry Warsaw2012-02-221-3/+4
| | | | | | | | | changeset: 75153:9b7c6dd19e25 branch: 2.7 parent: 75151:b1a02c17b327 user: Antoine Pitrou <solipsis@pitrou.net> date: Tue Feb 21 22:02:04 2012 +0100 files: Lib/test/test_os.py
* - 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 #3804: Added test for Issue #2222.Hirokazu Yamamoto2008-09-081-0/+7
| | | | Reviewed by Benjamin Peterson.
* Issue #3708: os.urandom no longer goes into an infinite loop when passed aGregory P. Smith2008-09-021-0/+4
| | | | non-integer floating point number.
* Reverted r65900. See ↵Hirokazu Yamamoto2008-08-201-7/+3
| | | | http://mail.python.org/pipermail/python-checkins/2008-August/073116.html
* fixed get_file_system in test_os.py ('path' is unicode on py3k and ansi on ↵Hirokazu Yamamoto2008-08-201-5/+8
| | | | trunk)
* #3580: fix a failure in test_osAntoine Pitrou2008-08-171-1/+1
|
* backport r65723: strengthen test_os.test_closerangeAntoine Pitrou2008-08-171-3/+21
|
* Remove the last usage of statvfs in the stdlib.Brett Cannon2008-05-161-10/+6
|
* Patch #2232: os.tmpfile might fail on Windows if the user has noMartin v. Löwis2008-03-061-0/+38
| | | | | permission to create files in the root directory. Will backport to 2.5.
* #1663329: add os.closerange() to close a range of fds,Georg Brandl2008-01-191-0/+6
| | | | | ignoring errors, and use this in subprocess to speed up subprocess creation in close_fds mode. Patch by Mike Klaas.
* Bug #1709599: Run test_1565150 only if the file system is NTFS.Martin v. Löwis2007-08-301-4/+14
|
* Whitespace normalization. Ugh, we really need to do this more often.Neal Norwitz2007-04-251-1/+1
| | | | You might want to review this change as it's my first time. Be gentle. :-)
* Fix WalkTests.test_traversal() on Windows. The cleanup inŽiga Seilnacht2007-04-041-25/+18
| | | | MakedirTests.setUp() can now be removed.
* Bug #1686475: Support stat'ing open files on Windows again.Martin v. Löwis2007-04-041-0/+9
| | | | Will backport to 2.5.
* Shut up an occaisonal buildbot error due to test files being left around.Collin Winter2007-03-311-0/+8
|
* New test for rev. 54407 which only uses directories under TESTFN.Georg Brandl2007-03-211-19/+47
|
* Try backing out 54407 to see if it corrects the problems on the WindowsNeal Norwitz2007-03-201-34/+6
| | | | | buildbots. This rev was backported, so we will need to keep both branches in sync, pending the outcome of the test after this checkin.
* Patch #1273829: os.walk() now has a "followlinks" parameter. If set toGeorg Brandl2007-03-161-6/+34
| | | | | True (which is not the default), it visits symlinks pointing to directories.
* Round to int, because some systems support sub-second time stamps in stat, ↵Martin v. Löwis2006-10-151-2/+4
| | | | | | but not in utime. Also be consistent with modifying only mtime, not atime.
* Loosen the test for equal time stamps.Martin v. Löwis2006-10-151-1/+1
|
* Patch #1576166: Support os.utime for directories on Windows NT+.Martin v. Löwis2006-10-151-0/+7
|
* Bug #1565150: Fix subsecond processing for os.utime on Windows.Martin v. Löwis2006-10-091-0/+8
|
* Whitespace normalization.Tim Peters2006-07-031-1/+1
|
* Correct arithmetic in access on Win32. Fixes #1513646.Martin v. Löwis2006-07-021-0/+14
|
* Port access, chmod, parts of getcwdu, mkdir, and utime to direct Win32 API.Martin v. Löwis2006-05-061-0/+12
|
* Implement os.{chdir,rename,rmdir,remove} using Win32 directly.Martin v. Löwis2006-05-041-1/+17
|
* Avoid using items() in environ.update(). Fixes #1124513.Martin v. Löwis2005-02-171-1/+1
| | | | Will backport to 2.4.
* Revert os.py 1.75, and directly implement update.Martin v. Löwis2005-01-291-0/+7
| | | | Fixes #1110478 and #1100235.
* Truncate st_?time before comparing it with ST_?TIME in the tests.Martin v. Löwis2005-01-231-1/+5
|
* Whitespace normalization.Tim Peters2004-08-291-1/+1
|
* Patch #934711: Expose platform-specific entropy.Martin v. Löwis2004-08-291-0/+11
|
* test_devnull(): Use assertEqual() instead of an assert stmt.Tim Peters2004-06-081-1/+1
|
* Feature request #935915: Add os.path.devnull.Martin v. Löwis2004-06-081-0/+9
|
* Rename class attribute containing the class to be tested, so the name is theWalter Dörwald2004-06-021-1/+1
| | | | same as for the string and sequence tests.
* Port the dictionary tests from test_types.py to unittest. Collect as muchWalter Dörwald2004-05-311-2/+2
| | | | | | mapping tests as possible in mapping_test.py and reuse the tests in test_dict.py, test_userdict.py, test_weakref.py, test_os.py and test_shelve.py. From SF patch #736962.
* Whitespace normalization.Tim Peters2004-01-181-3/+3
|