[Python-checkins] r75501 - python/trunk/Lib/test/test_threading.py
antoine.pitrou
python-checkins at python.org
Sun Oct 18 20:37:11 CEST 2009
Author: antoine.pitrou
Date: Sun Oct 18 20:37:11 2009
New Revision: 75501
Log:
Add a comment about unreachable code, and fix a typo
Modified:
python/trunk/Lib/test/test_threading.py
Modified: python/trunk/Lib/test/test_threading.py
==============================================================================
--- python/trunk/Lib/test/test_threading.py (original)
+++ python/trunk/Lib/test/test_threading.py Sun Oct 18 20:37:11 2009
@@ -176,11 +176,13 @@
except AsyncExc:
pass
else:
+ # This code is unreachable but it reflects the intent. If we wanted
+ # to be smarter the above loop wouldn't be infinite.
self.fail("AsyncExc not raised")
try:
self.assertEqual(result, 1) # one thread state modified
except UnboundLocalError:
- # The exception was raised to quickly for us to get the result.
+ # The exception was raised too quickly for us to get the result.
pass
# `worker_started` is set by the thread when it's inside a try/except
More information about the Python-checkins
mailing list