summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@redhat.com>2006-02-28 12:56:25 +0000
committerDaniel Veillard <veillard@redhat.com>2006-02-28 12:56:25 +0000
commit2746e63e2866d2a7870e1ddc30a615a17ef99d62 (patch)
tree75a5f9ccdceee28bf508a57f23404df5a5df404e /tests
parent9600409e58e3580ccd0e46c1da2c6a019a01ec02 (diff)
downloadlibvirt-python-v6-2746e63e2866d2a7870e1ddc30a615a17ef99d62.tar.gz
libvirt-python-v6-2746e63e2866d2a7870e1ddc30a615a17ef99d62.tar.xz
libvirt-python-v6-2746e63e2866d2a7870e1ddc30a615a17ef99d62.zip
Fixed the test, daniel
Diffstat (limited to 'tests')
-rwxr-xr-xtests/error.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/error.py b/tests/error.py
index 9979ed1..295f9a7 100755
--- a/tests/error.py
+++ b/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)