File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 1414from weakref import WeakSet
1515import traceback
1616from io import StringIO , TextIOBase
17+ import io
1718import os
1819
1920import 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 """
Original file line number Diff line number Diff line change @@ -66,7 +66,9 @@ def test_capture_fd():
6666 _check_master (kc , expected = True )
6767
6868
69- @pytest .mark .skipif (sys .platform == "win32" , reason = "Not meant to work on windows" )
69+ @pytest .mark .skip (
70+ reason = "Currently don't capture during test as pytest does its own capturing"
71+ )
7072def test_subprocess_peek_at_stream_fileno ():
7173 """"""
7274 with kernel () as kc :
You can’t perform that action at this time.
0 commit comments