Fix logger test when ipython is not installed.

Tests should not assume that exception_info_pretty in result objects will be a string. Fixes #141