We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 81f8135 commit b85883dCopy full SHA for b85883d
1 file changed
src/kaocha/api.clj
@@ -17,6 +17,14 @@
17
;; Prevent clj-refactor from "cleaning" these from the ns form
18
(require 'kaocha.monkey-patch)
19
20
+;; Before orig-out was set to *out*, and unfortunately that will
21
+;; cause a ClassCastException.
22
+;; => "java.io.OutputStreamWriter cannot be cast to java.io.PrintStream"
23
+;; Explanation:
24
+;; The exception is because that when user interruption happens,
25
+;; Kaocha will force resetting printing to stdout. However, *out*
26
+;; is of class java.io.OutputStreamWriter, but System/out is of
27
+;; class java.io.PrintStream
28
(def orig-out System/out)
29
(def orig-err System/err)
30
0 commit comments