[Zodb-checkins] CVS: StandaloneZODB/ZEO/tests - ThreadTests.py:1.3

Jeremy Hylton jeremy@zope.com
Tue, 6 Aug 2002 12:35:35 -0400


Update of /cvs-repository/StandaloneZODB/ZEO/tests
In directory cvs.zope.org:/tmp/cvs-serv15037

Modified Files:
	ThreadTests.py 
Log Message:
Override join() to provide a timeout.


=== StandaloneZODB/ZEO/tests/ThreadTests.py 1.2 => 1.3 ===
         self.gotValueError = 0
         self.gotDisconnected = 0
         threading.Thread.__init__(self)
+        self.setDaemon(1)
+
+    def join(self):
+        threading.Thread.join(self, 10)
+        assert not self.isAlive()
 
 
 class GetsThroughVoteThread(BasicThread):