~bzr/ubuntu/natty/python-testtools/bzr-ppa

« back to all changes in this revision

Viewing changes to testtools/testsuite.py

  • Committer: Robert Collins
  • Date: 2009-12-15 23:13:38 UTC
  • mfrom: (16.11.2 upstream)
  • Revision ID: robertc@robertcollins.net-20091215231338-en4foxftyfaaqgn0
* New upstream release.
* Include the manual in the package.

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
  'ConcurrentTestSuite',
8
8
  ]
9
9
 
10
 
import Queue
 
10
try:
 
11
    import Queue
 
12
except ImportError:
 
13
    import queue as Queue
11
14
import threading
12
15
import unittest
13
16
 
60
63
                threads[finished_test][0].join()
61
64
                del threads[finished_test]
62
65
        except:
63
 
            for thread, process_result in threads.itervalues():
 
66
            for thread, process_result in threads.values():
64
67
                process_result.stop()
65
68
            raise
66
69