catch termios.error (linux).

For some reason py.test isn't in a terminal. On linux (travis) its
throwing general "error: (25, 'Inappropriate ioctl for device')" which
I'm hoping is termios.error, otherwise we'll have to catch 'Exception'
again.