diff --git a/tests/sessions_tests/tests.py b/tests/sessions_tests/tests.py index 73d2a13a9f..a3bcc9ad1c 100644 --- a/tests/sessions_tests/tests.py +++ b/tests/sessions_tests/tests.py @@ -915,9 +915,9 @@ def test_session_save_does_not_resurrect_session_logged_out_in_other_context(sel class ClearSessionsCommandTests(SimpleTestCase): def test_clearsessions_unsupported(self): msg = ( - "Session engine 'tests.sessions_tests.no_clear_expired' doesn't " + "Session engine 'sessions_tests.no_clear_expired' doesn't " "support clearing expired sessions." ) - with self.settings(SESSION_ENGINE='tests.sessions_tests.no_clear_expired'): + with self.settings(SESSION_ENGINE='sessions_tests.no_clear_expired'): with self.assertRaisesMessage(management.CommandError, msg): management.call_command('clearsessions')