Closed
Description
In capture, we define a method fileno for the DontReadFromInput:
https://github.com/pytest-dev/pytest/blob/master/_pytest/capture.py#L450
However, python docs suggest this shouldn't be implemented:
file.fileno()
Return the integer “file descriptor” that is used by the underlying implementation to request I/O operations from the operating system. This can be useful for other, lower level interfaces that use file descriptors, such as the fcntl module or os.read() and friends.
Note File-like objects which do not have a real file descriptor should not provide this method!
https://docs.python.org/2/library/stdtypes.html
Is there a particular reason it is provided?