]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
finalize the queue to resolve test issue
authorJesse Noller <jnoller@gmail.com>
Mon, 30 Mar 2009 21:57:36 +0000 (21:57 +0000)
committerJesse Noller <jnoller@gmail.com>
Mon, 30 Mar 2009 21:57:36 +0000 (21:57 +0000)
Lib/test/test_multiprocessing.py

index aa4743f1274f85e0d73e2dbfe6f27ab663178f46..d2503f619cf37a0f9ef071ad47a3bbe48b94636e 100644 (file)
@@ -1207,10 +1207,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()
 
 #
 #