diff options
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 df7df3c..ce248a2 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.getName(), 'will run for', delay, 'sec' +                print 'task', self.get_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.getName(), 'done' +                print 'task', self.get_name(), 'done'              mutex.acquire()              running -= 1              if test_support.verbose: -                print self.getName(), 'is finished.', running, 'tasks are running' +                print self.get_name(), 'is finished.', running, 'tasks are running'              mutex.release()              sema.release()  | 
