diff options
-rw-r--r-- | modules/with-ns/src/test/clojure/clojure/contrib/test_with_ns.clj | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/with-ns/src/test/clojure/clojure/contrib/test_with_ns.clj b/modules/with-ns/src/test/clojure/clojure/contrib/test_with_ns.clj index 8d3ca3c1..3d0411ce 100644 --- a/modules/with-ns/src/test/clojure/clojure/contrib/test_with_ns.clj +++ b/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)))))))) |