Skip to content

Commit 03c93c3

Browse files
committed
-
1 parent 1bc0630 commit 03c93c3

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

tests/test_io.py

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -122,14 +122,15 @@ async def test_outstream2(iopub_thread):
122122
session = Session()
123123
stream = OutStream(session, iopub_thread, "stdout", isatty=True, echo=io.StringIO())
124124

125-
with stream:
126-
with pytest.raises(io.UnsupportedOperation):
127-
stream.fileno()
128-
stream._watch_pipe_fd()
129-
stream.flush()
130-
stream.write("hi")
131-
stream.writelines(["ab", "cd"])
132-
assert stream.writable()
125+
with pytest.raises(io.UnsupportedOperation):
126+
stream.fileno()
127+
stream._watch_pipe_fd()
128+
stream.flush()
129+
stream.write("hi")
130+
stream.writelines(["ab", "cd"])
131+
assert stream.writable()
132+
133+
stream.close()
133134

134135

135136
async def test_event_pipe_gc(iopub_thread):

0 commit comments

Comments
 (0)