From: Tim Peters Date: Wed, 9 Oct 2013 02:29:27 +0000 (-0500) Subject: Whitespace normalization. X-Git-Tag: v3.4.0a4~203 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3d1b7a0c10d87d0b79b9ee41871de67470b6313b;p=thirdparty%2FPython%2Fcpython.git Whitespace normalization. --- diff --git a/Lib/test/test_threading.py b/Lib/test/test_threading.py index 4d30ee4e07b2..7bd3082842c1 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):