Re: [PATCH RFC 29/32] python//qtest.py: Check before accessing _qtest

2020-05-31 Thread Philippe Mathieu-Daudé
On 5/14/20 7:54 AM, John Snow wrote: > It can be None; so add assertions or exceptions where appropriate to > guard the access accordingly. > > Signed-off-by: John Snow > --- > python/qemu/lib/qtest.py | 14 +++--- > 1 file changed, 11 insertions(+), 3 deletions(-) > > diff --git a/pyth

Re: [PATCH RFC 29/32] python//qtest.py: Check before accessing _qtest

2020-05-13 Thread Philippe Mathieu-Daudé
On 5/14/20 7:54 AM, John Snow wrote: It can be None; so add assertions or exceptions where appropriate to guard the access accordingly. Signed-off-by: John Snow --- python/qemu/lib/qtest.py | 14 +++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/python/qemu/lib/qt

[PATCH RFC 29/32] python//qtest.py: Check before accessing _qtest

2020-05-13 Thread John Snow
It can be None; so add assertions or exceptions where appropriate to guard the access accordingly. Signed-off-by: John Snow --- python/qemu/lib/qtest.py | 14 +++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/python/qemu/lib/qtest.py b/python/qemu/lib/qtest.py index a