From 39b67b8562f384279b3b380d3ca27383b65f6c90 Mon Sep 17 00:00:00 2001 From: Adam Coddington Date: Tue, 21 Jul 2015 22:52:35 -0700 Subject: [PATCH] Use TestCase.skipTest. --- django_mailbox/tests/test_integration_imap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django_mailbox/tests/test_integration_imap.py b/django_mailbox/tests/test_integration_imap.py index e36927c..1b136b9 100644 --- a/django_mailbox/tests/test_integration_imap.py +++ b/django_mailbox/tests/test_integration_imap.py @@ -30,7 +30,7 @@ class TestImap(EmailMessageTestCase): None ] if not all(required_settings): - raise SkipTest( + self.skipTest( "Integration tests are not available without having " "the the following environment variables set: " "EMAIL_ACCOUNT, EMAIL_PASSWORD, EMAIL_SMTP_SERVER, "