commit | 82eb5902ce169be81110c79662b772b904cd00fc | [log] [tgz] |
---|---|---|
author | Jesse Noller <jnoller@gmail.com> | Mon Mar 30 23:29:31 2009 +0000 |
committer | Jesse Noller <jnoller@gmail.com> | Mon Mar 30 23:29:31 2009 +0000 |
tree | 53aa2270a045dd78e0d4cfeef20c3ad23b18cd03 | |
parent | d7bf8a54787d0c3520a0788224537acab2491b38 [diff] [blame] |
merge in patch from tim golden to fix contextmanager support for mp.Lock()
diff --git a/Lib/test/test_multiprocessing.py b/Lib/test/test_multiprocessing.py index 105a743..a446ac3 100644 --- a/Lib/test/test_multiprocessing.py +++ b/Lib/test/test_multiprocessing.py
@@ -546,6 +546,10 @@ self.assertEqual(lock.release(), None) self.assertRaises((AssertionError, RuntimeError), lock.release) + def test_lock_context(self): + with self.Lock(): + pass + class _TestSemaphore(BaseTestCase):