qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] iotests: remove assertIsNotNone call
@ 2015-05-22 16:01 John Snow
  2015-05-26 10:13 ` [Qemu-devel] [Qemu-block] " Stefan Hajnoczi
  2015-05-26 11:50 ` [Qemu-devel] " Kevin Wolf
  0 siblings, 2 replies; 3+ messages in thread
From: John Snow @ 2015-05-22 16:01 UTC (permalink / raw)
  To: qemu-block; +Cc: kwolf, John Snow, qemu-devel

RHEL6 doesn't have Python 2.7, so replace this call with
assertNotEqual(x, None) which will work just as well.

Reported-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: John Snow <jsnow@redhat.com>
---
 tests/qemu-iotests/124 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/qemu-iotests/124 b/tests/qemu-iotests/124
index 3ee78cd..8abce2f 100644
--- a/tests/qemu-iotests/124
+++ b/tests/qemu-iotests/124
@@ -125,7 +125,7 @@ class TestIncrementalBackup(iotests.QMPTestCase):
 
         event = self.vm.event_wait(name="BLOCK_JOB_COMPLETED",
                                    match={'data': {'device': kwargs['device']}})
-        self.assertIsNotNone(event)
+        self.assertNotEqual(event, None)
 
         try:
             failure = self.dictpath(event, 'data/error')
-- 
2.1.0

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [Qemu-devel] [Qemu-block] [PATCH] iotests: remove assertIsNotNone call
  2015-05-22 16:01 [Qemu-devel] [PATCH] iotests: remove assertIsNotNone call John Snow
@ 2015-05-26 10:13 ` Stefan Hajnoczi
  2015-05-26 11:50 ` [Qemu-devel] " Kevin Wolf
  1 sibling, 0 replies; 3+ messages in thread
From: Stefan Hajnoczi @ 2015-05-26 10:13 UTC (permalink / raw)
  To: John Snow; +Cc: qemu-devel, qemu-block

[-- Attachment #1: Type: text/plain, Size: 419 bytes --]

On Fri, May 22, 2015 at 12:01:41PM -0400, John Snow wrote:
> RHEL6 doesn't have Python 2.7, so replace this call with
> assertNotEqual(x, None) which will work just as well.
> 
> Reported-by: Kevin Wolf <kwolf@redhat.com>
> Signed-off-by: John Snow <jsnow@redhat.com>
> ---
>  tests/qemu-iotests/124 | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>

[-- Attachment #2: Type: application/pgp-signature, Size: 473 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Qemu-devel] [PATCH] iotests: remove assertIsNotNone call
  2015-05-22 16:01 [Qemu-devel] [PATCH] iotests: remove assertIsNotNone call John Snow
  2015-05-26 10:13 ` [Qemu-devel] [Qemu-block] " Stefan Hajnoczi
@ 2015-05-26 11:50 ` Kevin Wolf
  1 sibling, 0 replies; 3+ messages in thread
From: Kevin Wolf @ 2015-05-26 11:50 UTC (permalink / raw)
  To: John Snow; +Cc: qemu-devel, qemu-block

Am 22.05.2015 um 18:01 hat John Snow geschrieben:
> RHEL6 doesn't have Python 2.7, so replace this call with
> assertNotEqual(x, None) which will work just as well.
> 
> Reported-by: Kevin Wolf <kwolf@redhat.com>
> Signed-off-by: John Snow <jsnow@redhat.com>

Thanks, applied to the block branch.

Kevin

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-05-26 11:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-22 16:01 [Qemu-devel] [PATCH] iotests: remove assertIsNotNone call John Snow
2015-05-26 10:13 ` [Qemu-devel] [Qemu-block] " Stefan Hajnoczi
2015-05-26 11:50 ` [Qemu-devel] " Kevin Wolf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).