~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_test_server.py

  • Committer: Vincent Ladeuil
  • Date: 2011-02-08 16:26:23 UTC
  • mto: This revision was merged to the branch mainline in revision 5655.
  • Revision ID: v.ladeuil+lp@free.fr-20110208162623-2njflo8y7rrtek3n
Use clearer names.

Show diffs side-by-side

added added

removed removed

Lines of Context:
181
181
 
182
182
            def handle_connection(self):
183
183
                req = self.rfile.readline()
184
 
                threading.currentThread().set_ready_event(sync)
 
184
                threading.currentThread().set_sync_event(sync)
185
185
                raise FailToRespond()
186
186
 
187
187
        server = self.get_server(
203
203
            def handle(self):
204
204
                # We want to sync with the thread that is serving the
205
205
                # connection.
206
 
                threading.currentThread().set_ready_event(sync)
 
206
                threading.currentThread().set_sync_event(sync)
207
207
                raise CantServe()
208
208
 
209
209
        server = self.get_server(