summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_os.py
Commit message (Collapse)AuthorAgeFilesLines
...
* | Add a small sleep to let a subprocess start before terminating it.Brian Curtin2010-04-141-0/+1
| | | | | | | | | | | | David Bolen's buildbot isn't know for it's speed, and it seems that we may have been trying to kill the subprocess before it was fully initialized. I ran with this change on the bot itself and it seemed to work.
* | Fix a failing test on an apparently slow Windows buildbot.Brian Curtin2010-04-051-2/+2
| | | | | | | | | | | | | | On slower Windows machines, waiting 0.1 seconds can sometimes not be enough for a subprocess to start and be ready to accept signals, causing the test to fail. One buildbot is also choking on input()/EOFError so that was changed to not depend on input.
* | Implement #1220212. Add os.kill support for Windows.Brian Curtin2010-04-021-3/+62
| | | | | | | | | | | | | | | | | | | | | | | | | | | | os.kill takes one of two newly added signals, CTRL_C_EVENT and CTRL_BREAK_EVENT, or any integer value. The events are a special case which work with subprocess console applications which implement a special console control handler. Any other value but those two will cause os.kill to use TerminateProcess, outright killing the process. This change adds win_console_handler.py, which is a script to implement SetConsoleCtrlHandler and applicable handler function, using ctypes. subprocess also gets another attribute which is a necessary flag to creationflags in Popen in order to send the CTRL events.
* | - Issue #1039, #8154: Fix os.execlp() crash with missing 2nd argument.Matthias Klose2010-03-191-0/+3
| |
* | Call setreuid and setregid in a subprocess to avoid altering the test runner'sGregory P. Smith2010-03-061-2/+16
| | | | | | | | process state. Should fix issue8045.
* | Fixes issue #7999: os.setreuid() and os.setregid() would refuse to acceptGregory P. Smith2010-03-011-0/+2
| | | | | | | | a -1 parameter on some platforms such as OS X.
* | Remove unused imports in test modules.Georg Brandl2010-02-071-3/+0
| |
* | use assert[Not]In where appropriateEzio Melotti2010-01-231-1/+1
| |
* | Issue #5080: turn the DeprecationWarning from float arguments passedMark Dickinson2010-01-011-5/+3
| | | | | | | | | | | | to integer PyArg_Parse* format codes into a TypeError. Add a DeprecationWarning for floats passed with the 'L' format code, which didn't previously have a warning.
* | Backport of fix for issue 6542: make sureR. David Murray2009-07-221-1/+12
| | | | | | | | | | test_os.TestInvalidFD.test_closerange does not close any valid file descriptors.
* | convert usage of fail* to assert*Benjamin Peterson2009-06-301-7/+7
| |
* | use skipTest()Benjamin Peterson2009-05-161-4/+1
| |
* | Fixes issue5705: os.setuid() and friends did not accept the same range ofGregory P. Smith2009-04-051-1/+44
| | | | | | | | values that pwd.getpwnam() returns.
* | Fix a number of Win32ErrorTests error cases. chmod wasn't being tested. ↵Kristján Valur Jónsson2009-02-061-5/+7
| | | | | | | | 'access' never raises an error.
* | check the errno in bad fd casesBenjamin Peterson2009-01-311-2/+8
| |
* | I'm sick of these deprecations warnings in test_osBenjamin Peterson2009-01-191-3/+5
| |
* | make bad file descriptor tests more robustBenjamin Peterson2009-01-191-13/+17
| |
* | Issue 4957Kristján Valur Jónsson2009-01-191-2/+1
| | | | | | | | Let os.ftruncate raise OSError like documented.
* | trying to find some fpathconf() settings that all unixs support...Benjamin Peterson2009-01-171-1/+1
| |
* | Make all the invalid fd tests for os subject to the function being available.Kristján Valur Jónsson2009-01-151-6/+12
| |
* | Fix two test cases in test_os. ftruncate raises IOError unlike all the ↵Kristján Valur Jónsson2009-01-151-2/+5
| | | | | | | | others which raise OSError. And close() on some platforms doesn't complain when given an invalid file descriptor.
* | Fix recently introduced test cases.Kristján Valur Jónsson2009-01-151-2/+2
| | | | | | | | | | 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.
* | Add tests for invalid format specifiers in strftime, and for handling of ↵Kristján Valur Jónsson2009-01-121-1/+51
|/ | | | invalid file descriptors in the os module.
* 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.