summaryrefslogtreecommitdiff
path: root/src/leap
diff options
context:
space:
mode:
authorBruno Wagner Goncalves <bwagner@thoughtworks.com>2014-08-21 15:05:33 -0300
committerBruno Wagner Goncalves <bwagner@thoughtworks.com>2014-08-21 15:05:33 -0300
commit53861af18ecf36dfebb9ae56c5b412dd1be0dd78 (patch)
treeaded7741daed22b3975abe40b662cf3be1115493 /src/leap
parent8a987bd846a060cbc12c7ac11a17afafb91b162c (diff)
Added fallback in case the gpg binary is not found on the PATH
Diffstat (limited to 'src/leap')
-rw-r--r--src/leap/mail/smtp/tests/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/leap/mail/smtp/tests/__init__.py b/src/leap/mail/smtp/tests/__init__.py
index 5dc7465..dc24293 100644
--- a/src/leap/mail/smtp/tests/__init__.py
+++ b/src/leap/mail/smtp/tests/__init__.py
@@ -42,8 +42,8 @@ from leap.common.testing.basetest import BaseLeapTest
def _find_gpg():
gpg_path = distutils.spawn.find_executable('gpg')
- return os.path.realpath(gpg_path)
-
+ return os.path.realpath(gpg_path) if gpg_path is not None else "/usr/bin/gpg"
+
class TestCaseWithKeyManager(BaseLeapTest):