Work in multiple places to improve state of the test suite....
Work in multiple places to improve state of the test suite.
With these changes, on my system now all the test sub-suites pass except
for the Twisted one (see
https://bugs.launchpad.net/ipython/+bug/504515 for
details on that one).