summaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorMartin Pool <mbp@canonical.com>2011-11-29 12:56:44 +1100
committerMartin Pool <mbp@canonical.com>2011-11-29 12:56:44 +1100
commit3e502a29cc859f5c6b74827f5f321dfb5a193e3c (patch)
tree9dad8e9431ba8987f4dd8e0edf1456933d40fb17 /README
parent5c1a5db9a6e06ff1fa2f816e99b606d3622fc789 (diff)
downloadfixtures-3e502a29cc859f5c6b74827f5f321dfb5a193e3c.tar.gz
Add TestTimeout fixture
Diffstat (limited to 'README')
-rw-r--r--README14
1 files changed, 14 insertions, 0 deletions
diff --git a/README b/README
index e00bcd8..574649f 100644
--- a/README
+++ b/README
@@ -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.