Skip to content

Commit 024d432

Browse files
committed
fix test
1 parent 1506aa9 commit 024d432

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ipykernel/iostream.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
from weakref import WeakSet
1515
import traceback
1616
from io import StringIO, TextIOBase
17+
import io
1718
import os
1819

1920
import zmq
@@ -295,7 +296,7 @@ def fileno(self):
295296
if getattr(self, '_original_stdstream_copy', None) is not None:
296297
return self._original_stdstream_copy
297298
else:
298-
raise UnsupportedOperation('fileno')
299+
raise io.UnsupportedOperation("fileno")
299300

300301
def _watch_pipe_fd(self):
301302
"""

0 commit comments

Comments
 (0)