summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_dummy_threading.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2008-06-11 19:14:14 (GMT)
committerBenjamin Peterson <benjamin@python.org>2008-06-11 19:14:14 (GMT)
commit672b8031a803fa420cac91cdaab02130c1f8bed0 (patch)
treecff73aa339853806887dd85bf1df34f088532efe /Lib/test/test_dummy_threading.py
parent559e5d7f4d1155e95fb6f925c927a263f9196935 (diff)
downloadcpython-672b8031a803fa420cac91cdaab02130c1f8bed0.zip
cpython-672b8031a803fa420cac91cdaab02130c1f8bed0.tar.gz
cpython-672b8031a803fa420cac91cdaab02130c1f8bed0.tar.bz2
Merged revisions 64125 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r64125 | benjamin.peterson | 2008-06-11 12:27:50 -0500 (Wed, 11 Jun 2008) | 2 lines give the threading API PEP 8 names ........
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 4e983ce..86b3f35 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.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 support.verbose:
- print('task', self.getName(), 'done')
+ print('task', self.get_name(), 'done')
mutex.acquire()
running -= 1
if 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()