summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)