]> granicus.if.org Git - python/commitdiff
finalize the queue prior to shutdown
authorJesse Noller <jnoller@gmail.com>
Mon, 30 Mar 2009 21:53:29 +0000 (21:53 +0000)
committerJesse Noller <jnoller@gmail.com>
Mon, 30 Mar 2009 21:53:29 +0000 (21:53 +0000)
Lib/test/test_multiprocessing.py

index 76bd3ed01326bcb141107783ad0ee5b84d40a62f..4388fe052343bda8ad06d74040c51a0d10131751 100644 (file)
@@ -1208,10 +1208,12 @@ class _TestManagerRestart(BaseTestCase):
         p.start()
         queue = manager.get_queue()
         self.assertEqual(queue.get(), 'hello world')
+        del queue
         manager.shutdown()
         manager = QueueManager(
             address=('localhost', 9999), authkey=authkey, serializer=SERIALIZER)
         manager.start()
+        manager.shutdown()
 
 #
 #