summaryrefslogtreecommitdiff
path: root/mail/src
diff options
context:
space:
mode:
authorBruno Wagner Goncalves <bwagner@thoughtworks.com>2014-08-21 12:44:29 -0300
committerBruno Wagner Goncalves <bwagner@thoughtworks.com>2014-08-21 12:44:29 -0300
commit741dce105dbf9d4118443f8d5ef588d43d6d8e45 (patch)
tree206bbf8c5452117d557072f664f9546f57c1872c /mail/src
parent69b4ec28e0791e338e5c5bb03296425c9e467253 (diff)
On the mac, the tempdir is not created at /tmp, so checking the tempdir format instead
Diffstat (limited to 'mail/src')
-rw-r--r--mail/src/leap/mail/imap/tests/test_imap.py2
-rw-r--r--mail/src/leap/mail/smtp/tests/__init__.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/mail/src/leap/mail/imap/tests/test_imap.py b/mail/src/leap/mail/imap/tests/test_imap.py
index fd88440..e87eb7b 100644
--- a/mail/src/leap/mail/imap/tests/test_imap.py
+++ b/mail/src/leap/mail/imap/tests/test_imap.py
@@ -238,7 +238,7 @@ class IMAP4HelperMixin(BaseLeapTest):
os.environ["PATH"] = cls.old_path
os.environ["HOME"] = cls.old_home
# safety check
- assert cls.tempdir.startswith('/tmp/leap_tests-')
+ assert 'leap_tests-' in cls.tempdir
shutil.rmtree(cls.tempdir)
def setUp(self):
diff --git a/mail/src/leap/mail/smtp/tests/__init__.py b/mail/src/leap/mail/smtp/tests/__init__.py
index 1459cea..85419cb 100644
--- a/mail/src/leap/mail/smtp/tests/__init__.py
+++ b/mail/src/leap/mail/smtp/tests/__init__.py
@@ -148,7 +148,7 @@ class TestCaseWithKeyManager(BaseLeapTest):
os.environ["PATH"] = self.old_path
os.environ["HOME"] = self.old_home
# safety check
- assert self.tempdir.startswith('/tmp/leap_tests-')
+ assert 'leap_tests-' in self.tempdir
shutil.rmtree(self.tempdir)