Rev 109: Do a little bit to help ensure we don't get a deadlock. in http://bazaar.launchpad.net/~meliae-dev/meliae/trunk

John Arbash Meinel john at arbash-meinel.com
Tue Oct 27 15:11:55 GMT 2009


At http://bazaar.launchpad.net/~meliae-dev/meliae/trunk

------------------------------------------------------------
revno: 109
revision-id: john at arbash-meinel.com-20091027151139-2jfe61bir92bfmjk
parent: john at arbash-meinel.com-20091027145731-rkszhleeyjncok4w
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: trunk
timestamp: Tue 2009-10-27 10:11:39 -0500
message:
  Do a little bit to help ensure we don't get a deadlock.
-------------- next part --------------
=== modified file 'meliae/tests/test_perf_counter.py'
--- a/meliae/tests/test_perf_counter.py	2009-10-27 14:57:31 +0000
+++ b/meliae/tests/test_perf_counter.py	2009-10-27 15:11:39 +0000
@@ -83,11 +83,13 @@
             'sys.stdout.flush(); sys.stdout.close()'],
             stdin=subprocess.PIPE, stdout=subprocess.PIPE)
         p.stdin.write('pre')
+        p.stdin.flush()
         p.stdout.read(3)
         cur_mem, peak_mem = perf_counter.perf_counter.get_memory(p)
         self.assertTrue(isinstance(cur_mem, long))
         self.assertTrue(isinstance(peak_mem, long))
         p.stdin.write('post')
+        p.stdin.flush()
         p.stdout.read()
         self.assertEqual(0, p.wait())
         # We allocated a 40MB string, we should have peaked at at least 20MB more



More information about the bazaar-commits mailing list