contrib.auth test fails due to duplicate user
In django.contrib.auth.tests.auth_backends.py we have (line 153)
self.user2 = User.objects.create_user('test2', 'test2@example.com', 'test')
In django.contrib.auth.tests.forms.py we have (line 224)
>>> user = User.objects.create_user('test2', 'tesT@EXAMple.com', 'test')
These usernames clash and an error is raised. The attached patch simply changes the usernames in forms.py.
Change History
(6)
Component: |
Uncategorized → Authentication
|
Has patch: |
set
|
milestone: |
→ 1.2
|
Triage Stage: |
Unreviewed → Ready for checkin
|
Resolution: |
→ fixed
|
Status: |
new → closed
|
I'm guessing this problem can only be triggered with certain test ordering, because I can't force the error myself. However, it's a trivial fix, so it warrants correction.