Make tests pass on pypy

It seems that pypy have changed the way they print tracebacks. This PR changes sopme unit tests to be more flexible about whitespace in traceback strings.