diff options
author | Martin Pool <mbp@canonical.com> | 2011-11-29 12:56:44 +1100 |
---|---|---|
committer | Martin Pool <mbp@canonical.com> | 2011-11-29 12:56:44 +1100 |
commit | 3e502a29cc859f5c6b74827f5f321dfb5a193e3c (patch) | |
tree | 9dad8e9431ba8987f4dd8e0edf1456933d40fb17 /README | |
parent | 5c1a5db9a6e06ff1fa2f816e99b606d3622fc789 (diff) | |
download | fixtures-3e502a29cc859f5c6b74827f5f321dfb5a193e3c.tar.gz |
Add TestTimeout fixture
Diffstat (limited to 'README')
-rw-r--r-- | README | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -335,3 +335,17 @@ Create a temporary directory and clean it up later. The created directory is stored in the ``path`` attribute of the fixture after setUp. + +TimeoutFixture +++++++++++++++ + +Interrupts tests if they take more than a specified number of whole wall-clock +seconds. + +There are two possibilities, controlled by the 'gentle' argument: when gentle, +an exception will be raised and the test will fail. When not gentle, the +entire test process will be terminated, which is less clean, but more likely to +break hangs where no Python code is running. You can only use one in any given +test. + +Currently supported only on Unix because it relies on the ``alarm`` system call. |