Don't enter pdb postmortem if stdin or stdout is not a tty. This will
keep travisci from getting confused like it did here
https://travis-ci.org/cubing/tnoodle/builds/15439308.