Hi Allen,

Good idea.  But instead of setting *e I've modified "report" to print
a brief stack trace for every error.  See if that works.

-Stuart Sierra

On Jan 14, 11:30 pm, Allen Rohner <aroh...@gmail.com> wrote:
> Here's a trivial patch that I've found useful. After catching an
> uncaught exception in a test, set! *e so you can examine the stack
> trace afterward.
>
> ===================================================================
> --- src/clojure/contrib/test_is.clj     (revision 314)
> +++ src/clojure/contrib/test_is.clj     (working copy)
>
> @@ -233,7 +289,8 @@
>          (try (t)
>               (catch Throwable e
>                 (report :error "Uncaught exception, not in assertion."
> -                       nil e))))))
> +                       nil e)
> +              (set! *e e))))))
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To post to this group, send email to clojure@googlegroups.com
To unsubscribe from this group, send email to 
clojure+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to