Commit 1e6d5750 authored by Iustin Pop's avatar Iustin Pop
Browse files

Fix incomplete merge

Commit 66bd7445

 changed the semantics of _JobProcessor on finished
jobs, and updated the related unittests in the 2.4 branch. It was then
merged to master, however on master there was an additional test for
this case, which was not updated.
Signed-off-by: default avatarIustin Pop <>
Reviewed-by: default avatarGuido Trotter <>
Reviewed-by: default avatarMichael Hanselmann <>
parent 9dfa16fc
# Copyright (C) 2010 Google Inc.
# Copyright (C) 2010, 2011 Google Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
......@@ -1175,9 +1175,9 @@ class TestJobProcessor(unittest.TestCase, _JobProcessorTestUtils):
# Finished jobs can't be processed any further
jqueue._JobProcessor(queue, opexec, job))
# Calling the processor on a finished job should be a no-op
self.assertTrue(jqueue._JobProcessor(queue, opexec, job)())
self.assertRaises(IndexError, queue.GetNextUpdate)
class _FakeTimeoutStrategy:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment