diff Lib/test/test_dummy_thread.py @ 46899:bd2c95c165ea

Rename Queue module to queue. Updated documentation to use new name. Merged revisions 63077 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r63077 | alexandre.vassalotti | 2008-05-11 15:39:48 -0400 (Sun, 11 May 2008) | 3 lines Added stub for the Queue module to be renamed in 3.0. Use the 3.0 module name to avoid spurious warnings. ........
author Alexandre Vassalotti <alexandre@peadrop.com>
date Sun, 11 May 2008 19:59:59 +0000
parents a6eb6acfe04a
children 9c930a32cebb
line wrap: on
line diff
--- a/Lib/test/test_dummy_thread.py	Sun May 11 16:52:22 2008 +0000
+++ b/Lib/test/test_dummy_thread.py	Sun May 11 19:59:59 2008 +0000
@@ -7,7 +7,7 @@
 """
 import dummy_thread as _thread
 import time
-import Queue
+import queue
 import random
 import unittest
 from test import test_support
@@ -124,7 +124,7 @@
             """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 @@
             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 "\