Mercurial > bitten > bitten-test
changeset 699:4928dfbd8e79 0.6.x
0.6dev: Merging [776] from trunk (a tweak to the queue threading test).
author | hodgestar |
---|---|
date | Fri, 25 Sep 2009 23:00:58 +0000 |
parents | 2145a12b3b7f |
children | 4e27920699b2 |
files | bitten/tests/queue.py |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/bitten/tests/queue.py +++ b/bitten/tests/queue.py @@ -291,7 +291,9 @@ thread1 = threading.Thread(target=build_populator) thread2 = threading.Thread(target=build_populator) - thread1.start(); thread2.start() + # tiny sleep is to avoid odd segementation faults + # (on Linux) and bus errors (on Mac OS X) + thread1.start(); time.sleep(0.01); thread2.start() thread1.join(); thread2.join() # check builds got added