Queue renaming reversal part 3: move module into place and

change imports and other references. Closes #2925.
This commit is contained in:
Georg Brandl 2008-05-25 07:20:14 +00:00
parent 8107290fa1
commit a6168f9e0a
15 changed files with 55 additions and 59 deletions

View file

@ -7,7 +7,7 @@ implementation as its sole argument.
"""
import dummy_thread as _thread
import time
import queue
import Queue
import random
import unittest
from test import test_support
@ -124,7 +124,7 @@ class ThreadTests(unittest.TestCase):
"""Use to test _thread.start_new_thread() passes args properly."""
queue.put((arg1, arg2))
testing_queue = queue.Queue(1)
testing_queue = Queue.Queue(1)
_thread.start_new_thread(arg_tester, (testing_queue, True, True))
result = testing_queue.get()
self.failUnless(result[0] and result[1],
@ -148,7 +148,7 @@ class ThreadTests(unittest.TestCase):
queue.put(_thread.get_ident())
thread_count = 5
testing_queue = queue.Queue(thread_count)
testing_queue = Queue.Queue(thread_count)
if test_support.verbose:
print
print "*** Testing multiple thread creation "\