In the google spreadsheet for py3k tasks for the sprint last month, one of the listed tasks was to convert Lib/test/test_thread to use the unittest module, where it previously was using the old-style testing (i.e. comparing output of print statements to a text file). I'm attatching a patch that makes that change. This is my first time submitting a patch to Python, so please let me know if I'm doing anything wrong (or if this patch is redundant).
This is a good start, but I think that instead of using global variables and functions, you should try to turn all those into instance variables (of the ThreadTest class). That way the tests are truly independent. Initialization should be taken care of in setUp().