Commit f21335fb authored by pfdietz's avatar pfdietz

Yet another cleanup of *terminal-io* pprint-* tests, ensuring the ignored input stream is closed

parent 39d7b43e
......@@ -63,8 +63,10 @@
(*print-right-margin* 100))
(with-output-to-string
(os)
(with-open-stream (*terminal-io* (make-two-way-stream (make-string-input-stream "") os))
(pprint-fill t '(1 2 3))))))
(with-input-from-string
(is "")
(with-open-stream (*terminal-io* (make-two-way-stream is os))
(pprint-fill t '(1 2 3)))))))
"(1 2 3)")
(deftest pprint-fill.11
......
......@@ -68,8 +68,10 @@
(*print-right-margin* 100))
(with-output-to-string
(os)
(with-open-stream (*terminal-io* (make-two-way-stream (make-string-input-stream "") os))
(pprint-linear t '(1 2 3))))))
(with-input-from-string
(is "")
(with-open-stream (*terminal-io* (make-two-way-stream is os))
(pprint-linear t '(1 2 3)))))))
"(1 2 3)")
(deftest pprint-linear.11
......
......@@ -100,8 +100,10 @@
(*print-right-margin* 100))
(with-output-to-string
(os)
(with-open-stream (*terminal-io* (make-two-way-stream (make-string-input-stream "") os))
(pprint-tabular t '(1 2 3) t nil 1)))))
(with-input-from-string
(is "")
(with-open-stream (*terminal-io* (make-two-way-stream is os))
(pprint-tabular t '(1 2 3) t nil 1))))))
"(1 2 3)")
(deftest pprint-tabular.24
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment