summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorTim Peters <tim@python.org>2013-10-09 02:29:27 (GMT)
committerTim Peters <tim@python.org>2013-10-09 02:29:27 (GMT)
commit3d1b7a0c10d87d0b79b9ee41871de67470b6313b (patch)
tree6c75a0e1c27e92b5c8cc8c41345cbbe57d8527ea /Lib
parente99bdb9694dd472fda932926d87cd6d783ec5da8 (diff)
downloadcpython-3d1b7a0c10d87d0b79b9ee41871de67470b6313b.zip
cpython-3d1b7a0c10d87d0b79b9ee41871de67470b6313b.tar.gz
cpython-3d1b7a0c10d87d0b79b9ee41871de67470b6313b.tar.bz2
Whitespace normalization.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_threading.py32
1 files changed, 16 insertions, 16 deletions
diff --git a/Lib/test/test_threading.py b/Lib/test/test_threading.py
index 4d30ee4..7bd3082 100644
--- a/Lib/test/test_threading.py
+++ b/Lib/test/test_threading.py
@@ -600,22 +600,22 @@ class ThreadTests(BaseTestCase):
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):