diff --git a/django/contrib/auth/tests/custom_user.py b/django/contrib/auth/tests/custom_user.py index 77e84771672..c856431bba4 100644 --- a/django/contrib/auth/tests/custom_user.py +++ b/django/contrib/auth/tests/custom_user.py @@ -211,7 +211,7 @@ class CustomUserNonListRequiredFields(AbstractBaseUser): class CustomUserBadRequiredFields(AbstractBaseUser): - "A user with a non-unique username" + "A user with a USERNAME_FIELD that appears in REQUIRED_FIELDS (invalid)" username = models.CharField(max_length=30, unique=True) date_of_birth = models.DateField()