summaryrefslogtreecommitdiff
path: root/src/leap/mail/imap/tests
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
commitb9005640877047f5167533e20f5b7d14bef9e9c9 (patch)
treec34c7e17883cb025671f8c1d3b1f03a8219f0d85 /src/leap/mail/imap/tests
parent910b86b3f7fecc760d5da02ef89ac1d6fd62299c (diff)
On the mac, the tempdir is not created at /tmp, so checking the tempdir format instead
Diffstat (limited to 'src/leap/mail/imap/tests')
-rw-r--r--src/leap/mail/imap/tests/test_imap.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/leap/mail/imap/tests/test_imap.py b/src/leap/mail/imap/tests/test_imap.py
index fd88440..e87eb7b 100644
--- a/src/leap/mail/imap/tests/test_imap.py
+++ b/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):