• jbd's avatar
    Check for fileno attribute in _tty_width function · bbd54e15
    jbd authored
    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.
    bbd54e15
options.py 6.61 KB