Commit a46fc5aa authored by Mathieu Giraud's avatar Mathieu Giraud

Merge branch '63-fix-python34' into 'dev'

src/should.py: fix Python 3.4 compatibility on 'j0:' tests

Closes #63

See merge request !28
parents 760fc37c af6a3c48
Pipeline #2721 passed with stages
in 22 seconds
......@@ -744,7 +744,7 @@ class TestCase(TestCaseAbstract):
else:
self.count = 1
except (json.decoder.JSONDecodeError, KeyError):
except (ValueError, KeyError):
# No json, or non-existent key: count is 0
self.json_data = JSON_KEY_NOT_FOUND
self.count = 0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment