Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | an AttributeError is perfectly acceptable here | Benjamin Peterson | 2010-06-30 | 1 | -1/+1 |
| | |||||
* | mark test depending on ref counting | Benjamin Peterson | 2010-06-30 | 1 | -0/+1 |
| | |||||
* | Fix #8405 for slow buildbots. Remove the sleep on startup and move the | Brian Curtin | 2010-05-28 | 1 | -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 Curtin | 2010-04-15 | 1 | -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. | ||||
* | Add a small sleep to let a subprocess start before terminating it. | Brian Curtin | 2010-04-14 | 1 | -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 Curtin | 2010-04-05 | 1 | -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 Curtin | 2010-04-02 | 1 | -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 Klose | 2010-03-19 | 1 | -0/+3 |
| | |||||
* | Call setreuid and setregid in a subprocess to avoid altering the test runner's | Gregory P. Smith | 2010-03-06 | 1 | -2/+16 |
| | | | | process state. Should fix issue8045. | ||||
* | Fixes issue #7999: os.setreuid() and os.setregid() would refuse to accept | Gregory P. Smith | 2010-03-01 | 1 | -0/+2 |
| | | | | a -1 parameter on some platforms such as OS X. | ||||
* | Remove unused imports in test modules. | Georg Brandl | 2010-02-07 | 1 | -3/+0 |
| | |||||
* | use assert[Not]In where appropriate | Ezio Melotti | 2010-01-23 | 1 | -1/+1 |
| | |||||
* | Issue #5080: turn the DeprecationWarning from float arguments passed | Mark Dickinson | 2010-01-01 | 1 | -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 sure | R. David Murray | 2009-07-22 | 1 | -1/+12 |
| | | | | | test_os.TestInvalidFD.test_closerange does not close any valid file descriptors. | ||||
* | convert usage of fail* to assert* | Benjamin Peterson | 2009-06-30 | 1 | -7/+7 |
| | |||||
* | use skipTest() | Benjamin Peterson | 2009-05-16 | 1 | -4/+1 |
| | |||||
* | Fixes issue5705: os.setuid() and friends did not accept the same range of | Gregory P. Smith | 2009-04-05 | 1 | -1/+44 |
| | | | | values that pwd.getpwnam() returns. | ||||
* | Fix a number of Win32ErrorTests error cases. chmod wasn't being tested. ↵ | Kristján Valur Jónsson | 2009-02-06 | 1 | -5/+7 |
| | | | | 'access' never raises an error. | ||||
* | check the errno in bad fd cases | Benjamin Peterson | 2009-01-31 | 1 | -2/+8 |
| | |||||
* | I'm sick of these deprecations warnings in test_os | Benjamin Peterson | 2009-01-19 | 1 | -3/+5 |
| | |||||
* | make bad file descriptor tests more robust | Benjamin Peterson | 2009-01-19 | 1 | -13/+17 |
| | |||||
* | Issue 4957 | Kristján Valur Jónsson | 2009-01-19 | 1 | -2/+1 |
| | | | | Let os.ftruncate raise OSError like documented. | ||||
* | trying to find some fpathconf() settings that all unixs support... | Benjamin Peterson | 2009-01-17 | 1 | -1/+1 |
| | |||||
* | Make all the invalid fd tests for os subject to the function being available. | Kristján Valur Jónsson | 2009-01-15 | 1 | -6/+12 |
| | |||||
* | Fix two test cases in test_os. ftruncate raises IOError unlike all the ↵ | Kristján Valur Jónsson | 2009-01-15 | 1 | -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ónsson | 2009-01-15 | 1 | -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ónsson | 2009-01-12 | 1 | -1/+51 |
| | | | | invalid file descriptors in the os module. | ||||
* | Issue #3804: Added test for Issue #2222. | Hirokazu Yamamoto | 2008-09-08 | 1 | -0/+7 |
| | | | | Reviewed by Benjamin Peterson. | ||||
* | Issue #3708: os.urandom no longer goes into an infinite loop when passed a | Gregory P. Smith | 2008-09-02 | 1 | -0/+4 |
| | | | | non-integer floating point number. | ||||
* | Reverted r65900. See ↵ | Hirokazu Yamamoto | 2008-08-20 | 1 | -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 Yamamoto | 2008-08-20 | 1 | -5/+8 |
| | | | | trunk) | ||||
* | #3580: fix a failure in test_os | Antoine Pitrou | 2008-08-17 | 1 | -1/+1 |
| | |||||
* | backport r65723: strengthen test_os.test_closerange | Antoine Pitrou | 2008-08-17 | 1 | -3/+21 |
| | |||||
* | Remove the last usage of statvfs in the stdlib. | Brett Cannon | 2008-05-16 | 1 | -10/+6 |
| | |||||
* | Patch #2232: os.tmpfile might fail on Windows if the user has no | Martin v. Löwis | 2008-03-06 | 1 | -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 Brandl | 2008-01-19 | 1 | -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öwis | 2007-08-30 | 1 | -4/+14 |
| | |||||
* | Whitespace normalization. Ugh, we really need to do this more often. | Neal Norwitz | 2007-04-25 | 1 | -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 Seilnacht | 2007-04-04 | 1 | -25/+18 |
| | | | | MakedirTests.setUp() can now be removed. | ||||
* | Bug #1686475: Support stat'ing open files on Windows again. | Martin v. Löwis | 2007-04-04 | 1 | -0/+9 |
| | | | | Will backport to 2.5. | ||||
* | Shut up an occaisonal buildbot error due to test files being left around. | Collin Winter | 2007-03-31 | 1 | -0/+8 |
| | |||||
* | New test for rev. 54407 which only uses directories under TESTFN. | Georg Brandl | 2007-03-21 | 1 | -19/+47 |
| | |||||
* | Try backing out 54407 to see if it corrects the problems on the Windows | Neal Norwitz | 2007-03-20 | 1 | -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 to | Georg Brandl | 2007-03-16 | 1 | -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öwis | 2006-10-15 | 1 | -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öwis | 2006-10-15 | 1 | -1/+1 |
| | |||||
* | Patch #1576166: Support os.utime for directories on Windows NT+. | Martin v. Löwis | 2006-10-15 | 1 | -0/+7 |
| | |||||
* | Bug #1565150: Fix subsecond processing for os.utime on Windows. | Martin v. Löwis | 2006-10-09 | 1 | -0/+8 |
| | |||||
* | Whitespace normalization. | Tim Peters | 2006-07-03 | 1 | -1/+1 |
| | |||||
* | Correct arithmetic in access on Win32. Fixes #1513646. | Martin v. Löwis | 2006-07-02 | 1 | -0/+14 |
| |