[PATCH 2/2] Add a way to test exception handling

Vratislav Podzimek vpodzime at redhat.com
Mon Sep 17 06:28:01 UTC 2012


On Thu, 2012-09-13 at 17:09 -0400, Chris Lumens wrote:
> > +    # raise exception from a separate thread
> > +    # XXX: may create a circular dependency if imported globally
> > +    from pyanaconda.threads import AnacondaThread, threadMgr
> > +    threadMgr.add(AnacondaThread(target=raise_exception,
> > +                                 args=(msg, non_ascii)))
> 
> Thread objects should be given a name.  Besides that, this looks pretty
> clever.
Good point, thanks. I'll add a name parameter before pushing.

-- 
Vratislav Podzimek

Anaconda Rider | Red Hat, Inc. | Brno - Czech Republic



More information about the anaconda-patches mailing list