diff options
author | Markus Armbruster | 2021-08-31 14:38:07 +0200 |
---|---|---|
committer | Markus Armbruster | 2021-09-03 17:09:10 +0200 |
commit | 9c629fa8340792cd30758b65f0593d93d7a383d7 (patch) | |
tree | 9ea02bed5328e443ba13669b06c3ddf2c14af4c6 /scripts/qapi/expr.py | |
parent | qapi: Use re.fullmatch() where appropriate (diff) | |
download | qemu-9c629fa8340792cd30758b65f0593d93d7a383d7.tar.gz qemu-9c629fa8340792cd30758b65f0593d93d7a383d7.tar.xz qemu-9c629fa8340792cd30758b65f0593d93d7a383d7.zip |
tests/qapi-schema: Hide OrderedDict in test output
Since commit 5d83b9a130 "qapi: replace if condition list with dict
{'all': [...]}", we represent if conditionals as trees consisting of
OrderedDict, list and str. This results in less than legible test
output. For instance:
if OrderedDict([('not', OrderedDict([('any', [OrderedDict([('not', 'TEST_IF_EVT')]), OrderedDict([('not', 'TEST_IF_STRUCT')])])]))])
We intend to replace OrderedDict by dict when we get Python 3.7, which
will result in more legible output:
if {'not': {'any': [{'not': 'TEST_IF_EVT'}, {'not': 'TEST_IF_STRUCT'}]}}
Can't wait: put in a hack to get that now, with a comment to revert it
when we replace OrderedDict.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20210831123809.1107782-11-armbru@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Diffstat (limited to 'scripts/qapi/expr.py')
0 files changed, 0 insertions, 0 deletions