1. Jason R. Coombs
  2. keyring

Commits

Jason R. Coombs  committed 99b21da

WinVault tests now clean up after themselves.

  • Participants
  • Parent commits 125ba6c
  • Branches default

Comments (0)

Files changed (1)

File keyring/tests/test_backend.py

View file
 
 class WinVaultKeyringTestCase(BackendBasicTestCase):
 
+    def tearDown(self):
+        # clean up any credentials created
+        for cred in self.credentials_created:
+            try:
+                self.keyring.delete_password(*cred)
+            except Exception, e:
+                print >> sys.stderr, e
+
     def init_keyring(self):
         print >> sys.stderr, "Testing WinVault, following password prompts are for this keyring"
         return keyring.backend.WinVaultKeyring()