From 97e7e798b2a934932535cc12da82f3dd01168d0c Mon Sep 17 00:00:00 2001 From: Daniel Veillard Date: Tue, 28 Feb 2006 12:56:25 +0000 Subject: [PATCH] Fixed the test, daniel --- python/tests/error.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/python/tests/error.py b/python/tests/error.py index 9979ed1e15..295f9a72b2 100755 --- a/python/tests/error.py +++ b/python/tests/error.py @@ -33,9 +33,10 @@ del conn if errno == None: print 'failed to get an error' elif errno[0] == libvirt.VIR_ERR_NO_CONNECT or \ - errno[0] == libvirt.VIR_ERR_INVALID_DOMAIN: + errno[0] == libvirt.VIR_ERR_INVALID_DOMAIN or \ + errno[0] == libvirt.VIR_ERR_GET_FAILED: print "OK" else: - print 'got unexpected error %s' % (errno) + print 'got unexpected error:', errno sys.exit(0) -- GitLab