diff options
author | Vincent Driessen <vincent@3rdcloud.com> | 2012-01-30 19:41:13 +0100 |
---|---|---|
committer | Vincent Driessen <vincent@3rdcloud.com> | 2012-01-30 19:41:13 +0100 |
commit | 7eb8d9260527fa1f50cc756424b8efe98303d153 (patch) | |
tree | 606ad40c657eda4e6bc0ef799308d3433d2077f9 /tests/__init__.py | |
parent | 0be1cb6ac0108744a1b46bccab2ff37b72bdaadf (diff) | |
download | rq-7eb8d9260527fa1f50cc756424b8efe98303d153.tar.gz |
Put unreadable tasks on the failure queue.
Diffstat (limited to 'tests/__init__.py')
-rw-r--r-- | tests/__init__.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/__init__.py b/tests/__init__.py index 1ecf83b..3109684 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -9,6 +9,10 @@ def testjob(name=None): name = 'Stranger' return 'Hi there, %s!' % (name,) +def failing_job(x): + # Will throw a division-by-zero error + return x / 0 + class RQTestCase(unittest.TestCase): """Base class to inherit test cases from for RQ. |