diff options
| author | Benjamin Peterson <benjamin@python.org> | 2008-08-18 18:01:43 (GMT) | 
|---|---|---|
| committer | Benjamin Peterson <benjamin@python.org> | 2008-08-18 18:01:43 (GMT) | 
| commit | a9b2222de40ed62e6ec1c79f6a89607913f4babd (patch) | |
| tree | a0555b78f80a1f5027ee3d198bac6326273be834 /Lib/test/test_dummy_threading.py | |
| parent | cbae8697599b690effd91be411fe4891ff8b52ad (diff) | |
| download | cpython-a9b2222de40ed62e6ec1c79f6a89607913f4babd.zip cpython-a9b2222de40ed62e6ec1c79f6a89607913f4babd.tar.gz cpython-a9b2222de40ed62e6ec1c79f6a89607913f4babd.tar.bz2  | |
change a few uses of the threading APIs
Diffstat (limited to 'Lib/test/test_dummy_threading.py')
| -rw-r--r-- | Lib/test/test_dummy_threading.py | 6 | 
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_dummy_threading.py b/Lib/test/test_dummy_threading.py index ce248a2..2f59d5f 100644 --- a/Lib/test/test_dummy_threading.py +++ b/Lib/test/test_dummy_threading.py @@ -16,7 +16,7 @@ class DummyThreadingTestCase(unittest.TestCase):              #delay = random.random() * 2              delay = 0              if test_support.verbose: -                print 'task', self.get_name(), 'will run for', delay, 'sec' +                print 'task', self.name, 'will run for', delay, 'sec'              sema.acquire()              mutex.acquire()              running += 1 @@ -25,11 +25,11 @@ class DummyThreadingTestCase(unittest.TestCase):              mutex.release()              time.sleep(delay)              if test_support.verbose: -                print 'task', self.get_name(), 'done' +                print 'task', self.name, 'done'              mutex.acquire()              running -= 1              if test_support.verbose: -                print self.get_name(), 'is finished.', running, 'tasks are running' +                print self.name, 'is finished.', running, 'tasks are running'              mutex.release()              sema.release()  | 
