Skip to content

Commit

Permalink
Merge pull request #9 from trvrm/master
Browse files Browse the repository at this point in the history
replaced obsolete reference to Exception.message for Python3 conformity
  • Loading branch information
danvk committed Feb 26, 2015
2 parents 3415308 + c92ef61 commit 8c94edd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/conformance_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@ def _runTests(path):
try:
items = jsonselect.match(selector, data)
actual_output = '\n'.join([json.dumps(o, indent=4) for o in items])

except jsonselect.JsonSelectError as e:
actual_output = 'Error: %s' % e.message
actual_output = 'Error: {0}'.format(e)

# Remove trailing whitespace, see http://bugs.python.org/issue16333
actual_output = '\n'.join([line.rstrip() for line in actual_output.split('\n')])
Expand Down

0 comments on commit 8c94edd

Please sign in to comment.