/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: 2017-06-08 23:30:31 UTC
  • mto: This revision was merged to the branch mainline in revision 6690.
  • Revision ID: jelmer@jelmer.uk-20170608233031-3qavls2o7a1pqllj
Update imports.

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
 
 
49
48
        class MyException(Exception):
50
49
            pass
51
50
 
65
64
    def test_sync_event(self):
66
65
        control = threading.Event()
67
66
        in_thread = threading.Event()
68
 
 
69
67
        class MyException(Exception):
70
68
            pass
71
69
 
76
74
            raise MyException()
77
75
 
78
76
        tt = cethread.CatchingExceptionThread(target=raise_my_exception,
79
 
                                              sync_event=in_thread)
 
77
                                            sync_event=in_thread)
80
78
        tt.start()
81
79
        tt.join(timeout=0)
82
80
        self.assertIs(None, tt.exception)