diff options
author | Daniel Veillard <veillard@redhat.com> | 2006-02-28 12:56:25 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@redhat.com> | 2006-02-28 12:56:25 +0000 |
commit | 97e7e798b2a934932535cc12da82f3dd01168d0c (patch) | |
tree | 9dc54ea16f224ea3dbf6184586416315340da6f7 /python/tests/error.py | |
parent | * TODO: updated (diff) | |
download | libvirt-97e7e798b2a934932535cc12da82f3dd01168d0c.tar.gz libvirt-97e7e798b2a934932535cc12da82f3dd01168d0c.tar.bz2 libvirt-97e7e798b2a934932535cc12da82f3dd01168d0c.zip |
Fixed the test, daniel
Diffstat (limited to 'python/tests/error.py')
-rwxr-xr-x | python/tests/error.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/python/tests/error.py b/python/tests/error.py index 9979ed1e1..295f9a72b 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) |