diff options
| author | Antoine Pitrou <solipsis@pitrou.net> | 2009-10-18 18:37:11 (GMT) | 
|---|---|---|
| committer | Antoine Pitrou <solipsis@pitrou.net> | 2009-10-18 18:37:11 (GMT) | 
| commit | 603acf99d04fc7149c3aa28202e56ee1f84f0c75 (patch) | |
| tree | 3d90029977078e3f00e68556c56875e09502f249 | |
| parent | 8a172b14a3a87e4c03c7689cdb6becbbe1badcb8 (diff) | |
| download | cpython-603acf99d04fc7149c3aa28202e56ee1f84f0c75.zip cpython-603acf99d04fc7149c3aa28202e56ee1f84f0c75.tar.gz cpython-603acf99d04fc7149c3aa28202e56ee1f84f0c75.tar.bz2 | |
Add a comment about unreachable code, and fix a typo
| -rw-r--r-- | Lib/test/test_threading.py | 4 | 
1 files changed, 3 insertions, 1 deletions
| diff --git a/Lib/test/test_threading.py b/Lib/test/test_threading.py index 5f4b026..ba60d8a 100644 --- a/Lib/test/test_threading.py +++ b/Lib/test/test_threading.py @@ -176,11 +176,13 @@ class ThreadTests(unittest.TestCase):          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 | 
