summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_resource.py
Commit message (Collapse)AuthorAgeFilesLines
* Change more tests to use import_module for the modules thatR. David Murray2009-03-301-2/+2
| | | | | should cause tests to be skipped. Also rename import_function to the more descriptive get_attribute and add a docstring.
* Patch #2167 from calvin: Remove unused importsChristian Heimes2008-02-231-1/+0
|
* Update the comment and remove the close. If we close we can't flush anymore.Neal Norwitz2008-01-271-2/+1
| | | | | We might still need to close after the for loop if flushing 6! times still doesn't cause the signal/exception.
* Add a tiny sleep and additional flush to force the file to really be synced.Neal Norwitz2008-01-271-2/+5
|
* Try to prevent this test from being flaky. We might need a sleep in hereNeal Norwitz2008-01-271-2/+6
| | | | | | | which isn't as bad as it sounds. The close() *should* raise an exception, so if it didn't we should give more time to sync and really raise it. Will backport.
* On some systems (e.g., Ubuntu on hppa) the flush()Neal Norwitz2008-01-261-0/+3
| | | | | | doesn't cause the exception, but the close() does. Will backport.
* Always try to remove the test file even if close raises an exceptionNeal Norwitz2008-01-261-2/+1
|
* Try to get rid of spurious failure in test_resource on the Debian buildbots ↵Nick Coghlan2007-07-241-9/+16
| | | | by changing the file size limit before attempting to close the file
* Whitespace normalization.Tim Peters2007-01-301-2/+2
|
* resource.RUSAGE_BOTH might not exist.Walter Dörwald2007-01-201-1/+1
|
* Add argument tests an calls of resource.getrusage().Walter Dörwald2007-01-201-0/+18
|
* Port test_resource.py to unittest.Walter Dörwald2007-01-201-56/+78
|
* Patch #551960: Add check for setrlimit() supportJason Tishler2002-12-121-4/+12
| | | | | | | | | | test_resource calls resource.setrlimit() to change the file size limits. This fails on Cygwin, which supports setrlimit() and getrlimit(), just not changing that particular setting. (The same would apply to any other platform that has those functions but not that particular feature.) Since getrlimit() works and setrlimit() can be used for other reasons, a check for ValueError was added to that part of the test.
* Get rid of relative imports in all unittests. Now anything thatBarry Warsaw2002-07-231-1/+1
| | | | | | | | | | | imports e.g. test_support must do so using an absolute package name such as "import test.test_support" or "from test import test_support". This also updates the README in Lib/test, and gets rid of the duplicate data dirctory in Lib/test/data (replaced by Lib/email/test/data). Now Tim and Jack can have at it. :)
* Add tests for the recent resource module change.Jeremy Hylton2002-04-231-0/+48
Also add a test that Python doesn't die with SIGXFSZ if it exceeds the file rlimit. (Assuming this will also test the behavior when the 2GB limit is exceed on a platform that doesn't have large file support.)