Attention une mise à jour du serveur va être effectuée le lundi 17 mai entre 13h et 13h30. Cette mise à jour va générer une interruption du service de quelques minutes.

Commit b224db00 authored by Mikaël Salson's avatar Mikaël Salson

Merge branch 'feature-at/fix-should-python34' into 'dev'

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

Closes #4649 and #4672

See merge request !899
parents 48d52fa3 388eca02
Pipeline #211337 passed with stages
in 9 minutes and 13 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