summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_dummy_threading.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2008-08-18 18:09:21 (GMT)
committerBenjamin Peterson <benjamin@python.org>2008-08-18 18:09:21 (GMT)
commit727537077043bb03a0c9e537cacbb9e695f7f4a8 (patch)
tree7f6062facaa5dda6a57383ffe1a7d7cd6a91f703 /Lib/test/test_dummy_threading.py
parentc16a7f3684290ddda130811912ae08a098df3d74 (diff)
downloadcpython-727537077043bb03a0c9e537cacbb9e695f7f4a8.zip
cpython-727537077043bb03a0c9e537cacbb9e695f7f4a8.tar.gz
cpython-727537077043bb03a0c9e537cacbb9e695f7f4a8.tar.bz2
Merged revisions 65824 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r65824 | benjamin.peterson | 2008-08-18 13:01:43 -0500 (Mon, 18 Aug 2008) | 1 line 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.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_dummy_threading.py b/Lib/test/test_dummy_threading.py
index 86b3f35..6ec5da3 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 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 support.verbose:
- print('task', self.get_name(), 'done')
+ print('task', self.name, 'done')
mutex.acquire()
running -= 1
if 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()