Skip to content
Snippets Groups Projects
Commit f21335fb authored by pfdietz's avatar pfdietz
Browse files

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

parent 39d7b43e
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment