]> granicus.if.org Git - python/commitdiff
finalize the queue to resolve test issue
authorJesse Noller <jnoller@gmail.com>
Mon, 30 Mar 2009 22:59:27 +0000 (22:59 +0000)
committerJesse Noller <jnoller@gmail.com>
Mon, 30 Mar 2009 22:59:27 +0000 (22:59 +0000)
Lib/test/test_multiprocessing.py

index 33f3bf306e5c3084943ac09b094ffac81c24a6fa..ed8c62630b289f222a2f470a4fb86446ca7e51e6 100644 (file)
@@ -1209,10 +1209,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()
 
 #
 #