Jason R. Coombs  committed 009fc26

Skip test_set_get_password

  • Participants
  • Parent commits 39ec18d

Comments (0)

Files changed (1)

File keyring/tests/

 import keyring.backend
 import keyring.core
 import keyring.util.platform
+from keyring.backends import file
 PASSWORD_TEXT = "This is password"
 PASSWORD_TEXT_2 = "This is password2"
         return PASSWORD_TEXT_2
 class CoreTestCase(unittest.TestCase):
+    @unittest.skip("the default keyring might be a keyring "
+        "which requires input (such as file.EncryptedKeyring), "
+        "in which case the test blocks forever. TODO: patch rawinput "
+        "to supply a password.")
     def test_set_get_password(self):
-        """Test the basic function of the keyring.
+        """
+        set/get_password on the default keyring.
         keyring.core.set_password("test", "user", "passtest")
         self.assertEqual(keyring.core.get_password("test", "user"), "passtest")