/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/tests/test_cethread.py

  • Committer: Jelmer Vernooij
  • Date: 2018-11-11 04:08:32 UTC
  • mto: (7143.16.20 even-more-cleanups)
  • mto: This revision was merged to the branch mainline in revision 7175.
  • Revision ID: jelmer@jelmer.uk-20181111040832-nsljjynzzwmznf3h
Run autopep8.

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
 
46
46
    def test_join_around_exception(self):
47
47
        resume = threading.Event()
 
48
 
48
49
        class MyException(Exception):
49
50
            pass
50
51
 
64
65
    def test_sync_event(self):
65
66
        control = threading.Event()
66
67
        in_thread = threading.Event()
 
68
 
67
69
        class MyException(Exception):
68
70
            pass
69
71
 
74
76
            raise MyException()
75
77
 
76
78
        tt = cethread.CatchingExceptionThread(target=raise_my_exception,
77
 
                                            sync_event=in_thread)
 
79
                                              sync_event=in_thread)
78
80
        tt.start()
79
81
        tt.join(timeout=0)
80
82
        self.assertIs(None, tt.exception)