diff --git a/python/t/tests_helper.py.in b/python/t/tests_helper.py.in index 93783430e..38f0dc521 100644 --- a/python/t/tests_helper.py.in +++ b/python/t/tests_helper.py.in @@ -56,7 +56,7 @@ def skipUnlessLibvirtHasCPointer(): """ try: import libvirt - except: + except ImportError: return unittest.skip("could not import libvirt") # Check we're using the version of libvirt-python that has # c_pointer() methods.