~pythonregexp2.7/python/issue2636-12

« back to all changes in this revision

Viewing changes to Lib/test/test_dummy_thread.py

  • Committer: Jeffrey C. "The TimeHorse" Jacobs
  • Date: 2008-06-09 14:52:42 UTC
  • mfrom: (39033.1.3 Regexp-2.6)
  • Revision ID: darklord@timehorse.com-20080609145242-9m268zc6u87rp1vp
Merged in changes from the core Regexp branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
"""
8
8
import dummy_thread as _thread
9
9
import time
10
 
import queue
 
10
import Queue
11
11
import random
12
12
import unittest
13
13
from test import test_support
124
124
            """Use to test _thread.start_new_thread() passes args properly."""
125
125
            queue.put((arg1, arg2))
126
126
 
127
 
        testing_queue = queue.Queue(1)
 
127
        testing_queue = Queue.Queue(1)
128
128
        _thread.start_new_thread(arg_tester, (testing_queue, True, True))
129
129
        result = testing_queue.get()
130
130
        self.failUnless(result[0] and result[1],
148
148
            queue.put(_thread.get_ident())
149
149
 
150
150
        thread_count = 5
151
 
        testing_queue = queue.Queue(thread_count)
 
151
        testing_queue = Queue.Queue(thread_count)
152
152
        if test_support.verbose:
153
153
            print
154
154
            print "*** Testing multiple thread creation "\