summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_queue.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2008-06-11 17:27:50 (GMT)
committerBenjamin Peterson <benjamin@python.org>2008-06-11 17:27:50 (GMT)
commit0fbcf6945584b1b2a7564680de50c062fc4dce1c (patch)
tree44d27858990999b69379b50abc5ad163789db6fc /Lib/test/test_queue.py
parent32c2e41c82c2d0f967a0f435f88168583218f262 (diff)
downloadcpython-0fbcf6945584b1b2a7564680de50c062fc4dce1c.zip
cpython-0fbcf6945584b1b2a7564680de50c062fc4dce1c.tar.gz
cpython-0fbcf6945584b1b2a7564680de50c062fc4dce1c.tar.bz2
give the threading API PEP 8 names
Diffstat (limited to 'Lib/test/test_queue.py')
-rw-r--r--Lib/test/test_queue.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/test/test_queue.py b/Lib/test/test_queue.py
index 660e177..e0eb8f4 100644
--- a/Lib/test/test_queue.py
+++ b/Lib/test/test_queue.py
@@ -49,11 +49,11 @@ class BlockingTestMixin:
self.t.start()
self.result = block_func(*block_args)
# If block_func returned before our thread made the call, we failed!
- if not self.t.startedEvent.isSet():
+ if not self.t.startedEvent.is_set():
self.fail("blocking function '%r' appeared not to block" %
block_func)
self.t.join(10) # make sure the thread terminates
- if self.t.isAlive():
+ if self.t.is_alive():
self.fail("trigger function '%r' appeared to not return" %
trigger_func)
return self.result
@@ -73,10 +73,10 @@ class BlockingTestMixin:
expected_exception_class)
finally:
self.t.join(10) # make sure the thread terminates
- if self.t.isAlive():
+ if self.t.is_alive():
self.fail("trigger function '%r' appeared to not return" %
trigger_func)
- if not self.t.startedEvent.isSet():
+ if not self.t.startedEvent.is_set():
self.fail("trigger thread ended but event never set")