~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_cethread.py

  • Committer: Vincent Ladeuil
  • Date: 2011-02-11 16:15:39 UTC
  • mto: This revision was merged to the branch mainline in revision 5661.
  • Revision ID: v.ladeuil+lp@free.fr-20110211161539-26o5a28ihyemvuzg
Fix pqm failure on python2.4.

Show diffs side-by-side

added added

removed removed

Lines of Context:
91
91
 
92
92
        class TestThread(cethread.CatchingExceptionThread):
93
93
 
94
 
            def __init__(self, *args, **kwargs):
95
 
                super(TestThread, self).__init__(*args,
96
 
                                                 target=self.step_by_step,
97
 
                                                 **kwargs)
 
94
            def __init__(self):
 
95
                super(TestThread, self).__init__(target=self.step_by_step)
98
96
                self.current_step = 'starting'
99
97
                self.step1 = threading.Event()
100
98
                self.set_sync_event(self.step1)
136
134
            def __init__(self, *args, **kwargs):
137
135
                self.step1 = threading.Event()
138
136
                self.step2 = threading.Event()
139
 
                super(TestThread, self).__init__(*args,
140
 
                                                 target=self.step_by_step,
141
 
                                                  sync_event=self.step1,
142
 
                                                 **kwargs)
 
137
                super(TestThread, self).__init__(target=self.step_by_step,
 
138
                                                 sync_event=self.step1)
143
139
                self.current_step = 'starting'
144
140
                self.set_sync_event(self.step1)
145
141