Mercurial > p > roundup > code
diff test/gpgmelib.py @ 4795:dad18ee491a9
Fix minor problems in tests
Make gpg test fault tolerant against existing directory.
Fix path problems for new auditor.
| author | Ralf Schlatterbeck <rsc@runtux.com> |
|---|---|
| date | Sat, 06 Jul 2013 12:10:50 +0200 |
| parents | ef4f1cefac9c |
| children | b7fa56ced601 |
line wrap: on
line diff
--- a/test/gpgmelib.py Fri Jun 28 11:21:37 2013 +0530 +++ b/test/gpgmelib.py Sat Jul 06 12:10:50 2013 +0200 @@ -118,6 +118,9 @@ pgphome = 'pgp-test-home' def setUpPGP(): + # prevent test from failing if left over from earlier run: + if os.path.exists(pgphome): + shutil.rmtree(pgphome) os.mkdir(pgphome) os.environ['GNUPGHOME'] = pgphome # gpgme_check_version() must have been called once in a programm
