summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_resource.py
Commit message (Collapse)AuthorAgeFilesLines
* #1291: copy test_resource.py from the 2.6 trunk, to fix a test failure.Andrew M. Kuchling2008-02-231-62/+101
| | | | The 2.6 version also converts to unittest, but it seems to work fine under 2.5.
* Backport test_resource fix from trunk to stop it crashing on UbuntuNick Coghlan2008-02-111-14/+19
|
* Try harder to provoke the exception since the ia64 buildbot stillNeal Norwitz2008-01-281-0/+2
| | | | doesn't reliably produce an exception.
* Sync up with trunk. Try to flush repeatedly to ensure the exception is raised.Neal Norwitz2008-01-271-5/+7
|
* Backport 60342:Neal Norwitz2008-01-271-2/+5
| | | | | | Try to prevent this test from being flaky. We might need a sleep in here 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.
* Backport 60334:Neal Norwitz2008-01-271-0/+3
| | | | | On some systems (e.g., Ubuntu on hppa) the flush() doesn't (always) cause the exception, but the close() does.
* 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.)