diff --git a/openedx/core/djangoapps/user_authn/views/tests/test_reset_password.py b/openedx/core/djangoapps/user_authn/views/tests/test_reset_password.py index 89f273e651..eeaf61249d 100644 --- a/openedx/core/djangoapps/user_authn/views/tests/test_reset_password.py +++ b/openedx/core/djangoapps/user_authn/views/tests/test_reset_password.py @@ -284,7 +284,7 @@ class ResetPasswordTests(EventTestMixin, CacheIsolationTestCase): body = bodies[body_type] - if django.VERSION >= (3, 0): + if django.VERSION >= (3, 0) and body_type == 'html': expected_output = "You're receiving this e-mail because you requested a password reset" assert 'Password reset' in sent_message.subject