~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_http.py

  • Committer: Vincent Ladeuil
  • Date: 2011-02-08 15:54:40 UTC
  • mto: This revision was merged to the branch mainline in revision 5655.
  • Revision ID: v.ladeuil+lp@free.fr-20110208155440-lns0pivfv8vskxji
Split ThreadWithException out of the tests hierarchy.

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
    osutils,
38
38
    remote as _mod_remote,
39
39
    tests,
 
40
    thread,
40
41
    transport,
41
42
    ui,
42
43
    )
178
179
        self._sock.bind(('127.0.0.1', 0))
179
180
        self.host, self.port = self._sock.getsockname()
180
181
        self._ready = threading.Event()
181
 
        self._thread = test_server.ThreadWithException(
 
182
        self._thread = test_server.TestThread(
182
183
            event=self._ready, target=self._accept_read_and_reply)
183
184
        self._thread.start()
184
185
        if 'threads' in tests.selftest_debug_flags: