Commits

Jason R. Coombs committed 5a7aac7

Use keyczar backend module itself to detect if keyczar is supported for tests.

Comments (0)

Files changed (1)

keyring/tests/backends/test_keyczar.py

 from .. import mocks
 
 def is_keyczar_supported():
-    try:
-        __import__('keyczar')
-    except ImportError:
-        return False
-    return True
+    return hasattr(keyczar, 'keyczar')
 
 @unittest.skipUnless(is_keyczar_supported(),
                      "Need Keyczar")