Don't expect a particular format of error from the `json` module.

Fixes the build on Python 3.4. It was the test that was broken.