~ubuntu-branches/ubuntu/saucy/python2.7/saucy-proposed

« back to all changes in this revision

Viewing changes to Lib/test/test_queue.py

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2013-05-15 19:15:16 UTC
  • mto: (36.1.23 sid)
  • mto: This revision was merged to the branch mainline in revision 87.
  • Revision ID: package-import@ubuntu.com-20130515191516-zmv6to904wemey7s
Tags: upstream-2.7.5
ImportĀ upstreamĀ versionĀ 2.7.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
 
44
44
class BlockingTestMixin:
45
45
 
 
46
    def tearDown(self):
 
47
        self.t = None
 
48
 
46
49
    def do_blocking_test(self, block_func, block_args, trigger_func, trigger_args):
47
50
        self.t = _TriggerThread(trigger_func, trigger_args)
48
51
        self.t.start()
222
225
            raise FailingQueueException, "You Lose"
223
226
        return Queue.Queue._get(self)
224
227
 
225
 
class FailingQueueTest(unittest.TestCase, BlockingTestMixin):
 
228
class FailingQueueTest(BlockingTestMixin, unittest.TestCase):
226
229
 
227
230
    def failing_queue_test(self, q):
228
231
        if not q.empty():