This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author abarry
Recipients abarry, martin.panter, serhiy.storchaka, vstinner
Date 2016-04-19.20:20:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1461097217.81.0.829251753654.issue26801@psf.upfronthosting.co.za>
In-reply-to
Content
To be fair, I don't think we actually need a unit test to check if `os.get_terminal_size` exists, as we catch any `AttributeError` at all. I'd want to keep the except clause there to properly handle `sys.__stdout__` being `None` (or simply absent). I also don't consider that I'm fixing a bug here, but more like an oversight. The except clause with `NameError` is obviously an oversight from when the function was ported from `os` to `shutil`, so I'd rather fix it.
History
Date User Action Args
2016-04-19 20:20:17abarrysetrecipients: + abarry, vstinner, martin.panter, serhiy.storchaka
2016-04-19 20:20:17abarrysetmessageid: <1461097217.81.0.829251753654.issue26801@psf.upfronthosting.co.za>
2016-04-19 20:20:17abarrylinkissue26801 messages
2016-04-19 20:20:17abarrycreate