[Python-checkins] cpython: Whitespace normalization.

tim.peters python-checkins at python.org
Wed Oct 9 04:30:18 CEST 2013


http://hg.python.org/cpython/rev/4f9753139203
changeset:   86168:4f9753139203
parent:      86166:7c56bf5afee6
user:        Tim Peters <tim at python.org>
date:        Tue Oct 08 21:29:27 2013 -0500
summary:
  Whitespace normalization.

files:
  Lib/test/test_threading.py |  32 +++++++++++++-------------
  1 files changed, 16 insertions(+), 16 deletions(-)


diff --git a/Lib/test/test_threading.py b/Lib/test/test_threading.py
--- a/Lib/test/test_threading.py
+++ b/Lib/test/test_threading.py
@@ -600,22 +600,22 @@
         self.assertIn(LOOKING_FOR, repr(t)) # we waited at least 5 seconds
 
     def test_BoundedSemaphore_limit(self):
-       # BoundedSemaphore should raise ValueError if released too often.
-       for limit in range(1, 10):
-           bs = threading.BoundedSemaphore(limit)
-           threads = [threading.Thread(target=bs.acquire)
-                      for _ in range(limit)]
-           for t in threads:
-               t.start()
-           for t in threads:
-               t.join()
-           threads = [threading.Thread(target=bs.release)
-                      for _ in range(limit)]
-           for t in threads:
-               t.start()
-           for t in threads:
-               t.join()
-           self.assertRaises(ValueError, bs.release)
+        # BoundedSemaphore should raise ValueError if released too often.
+        for limit in range(1, 10):
+            bs = threading.BoundedSemaphore(limit)
+            threads = [threading.Thread(target=bs.acquire)
+                       for _ in range(limit)]
+            for t in threads:
+                t.start()
+            for t in threads:
+                t.join()
+            threads = [threading.Thread(target=bs.release)
+                       for _ in range(limit)]
+            for t in threads:
+                t.start()
+            for t in threads:
+                t.join()
+            self.assertRaises(ValueError, bs.release)
 
 class ThreadJoinOnShutdown(BaseTestCase):
 

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list