Check for fileno attribute in _tty_width function
When using Options parser within a unittest.TextTestRunner with buffering enabled (buffer=True), it fails with: AttributeError: StringIO instance has no attribute 'fileno' This change will prevent this kind of error.
Showing
Please register or sign in to comment