[Python-checkins] cpython (merge 3.2 -> 3.3): Merge test_queue clean up from 3.2.

ezio.melotti python-checkins at python.org
Sat Mar 23 22:39:36 CET 2013


http://hg.python.org/cpython/rev/263fdce97aa0
changeset: 82932:263fdce97aa0
branch: 3.3
parent: 82917:4c2fc172afcc
parent: 82931:1c7c692de1ee
user: Ezio Melotti <ezio.melotti at gmail.com>
date: Sat Mar 23 23:36:23 2013 +0200
summary:
 Merge test_queue clean up from 3.2.
files:
 Lib/test/test_queue.py | 5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/Lib/test/test_queue.py b/Lib/test/test_queue.py
--- a/Lib/test/test_queue.py
+++ b/Lib/test/test_queue.py
@@ -46,6 +46,9 @@
 
 class BlockingTestMixin:
 
+ def tearDown(self):
+ self.t = None
+
 def do_blocking_test(self, block_func, block_args, trigger_func, trigger_args):
 self.t = _TriggerThread(trigger_func, trigger_args)
 self.t.start()
@@ -260,7 +263,7 @@
 raise FailingQueueException("You Lose")
 return queue.Queue._get(self)
 
-class FailingQueueTest(unittest.TestCase, BlockingTestMixin):
+class FailingQueueTest(BlockingTestMixin, unittest.TestCase):
 
 def failing_queue_test(self, q):
 if q.qsize():
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /