summaryrefslogtreecommitdiff
path: root/Lib/test/test_multiprocessing.py
diff options
context:
space:
mode:
authorJesse Noller <jnoller@gmail.com>2009-03-30 23:29:31 +0000
committerJesse Noller <jnoller@gmail.com>2009-03-30 23:29:31 +0000
commit82eb5902ce169be81110c79662b772b904cd00fc (patch)
tree53aa2270a045dd78e0d4cfeef20c3ad23b18cd03 /Lib/test/test_multiprocessing.py
parentd7bf8a54787d0c3520a0788224537acab2491b38 (diff)
downloadcpython-git-82eb5902ce169be81110c79662b772b904cd00fc.tar.gz
merge in patch from tim golden to fix contextmanager support for mp.Lock()
Diffstat (limited to 'Lib/test/test_multiprocessing.py')
-rw-r--r--Lib/test/test_multiprocessing.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_multiprocessing.py b/Lib/test/test_multiprocessing.py
index 105a7433c0..a446ac304d 100644
--- a/Lib/test/test_multiprocessing.py
+++ b/Lib/test/test_multiprocessing.py
@@ -546,6 +546,10 @@ class _TestLock(BaseTestCase):
self.assertEqual(lock.release(), None)
self.assertRaises((AssertionError, RuntimeError), lock.release)
+ def test_lock_context(self):
+ with self.Lock():
+ pass
+
class _TestSemaphore(BaseTestCase):