Permalink
Browse files

Fix broken with-ns tests; refs #95

* broken by Clojure commit 1c0468dbe5228bb8c228e1370133bbe1d018e058
* Clojure's compiler exceptions changed their format
  • Loading branch information...
1 parent 4083a06 commit 11852b988be61bbf661ca80ef7a78d17e3ee2325 @stuartsierra stuartsierra committed Sep 17, 2010
Showing with 3 additions and 3 deletions.
  1. +3 −3 modules/with-ns/src/test/clojure/clojure/contrib/test_with_ns.clj
@@ -12,7 +12,7 @@
(try
(with-temp-ns
(throw (RuntimeException. (str (ns-name *ns*)))))
- (catch clojure.lang.Compiler$CompilerException e
- (-> e .getCause .getMessage)))]
- (is (re-find #"^sym.*$" ns-name-str))
+ (catch Throwable e
+ (-> e .getMessage)))]
+ (is (re-find #"sym.*auto" ns-name-str))
(is (not (some #{(symbol ns-name-str)} (all-ns-names))))))))

0 comments on commit 11852b9

Please sign in to comment.