qapi/introspect.py: assert schema is not None
commit6b67bcac0f595143f5a5fce4e518b74577bae192
authorJohn Snow <jsnow@redhat.com>
Tue, 16 Feb 2021 02:17:52 +0000 (15 21:17 -0500)
committerMarkus Armbruster <armbru@redhat.com>
Thu, 18 Feb 2021 18:35:11 +0000 (18 19:35 +0100)
treef5ae61ebb76ef52338bd8cdd33609a14212f7adc
parent2184bca7b17559107032ba4fd8fc6f65345276ed
qapi/introspect.py: assert schema is not None

The introspect visitor is stateful, but expects that it will have a
schema to refer to. Add assertions that state this.

Signed-off-by: John Snow <jsnow@redhat.com>
Message-Id: <20210216021809.134886-3-jsnow@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
scripts/qapi/introspect.py