Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed a small oversight in auth tests

Thanks to Vinicius Ruan Cainelli for the catch
closes #392
  • Loading branch information...
commit 01362745ba72286309ff1955219a5ffc32c760b0 1 parent c9c9a56
@ptone ptone authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 django/contrib/auth/tests/basic.py
View
4 django/contrib/auth/tests/basic.py
@@ -38,8 +38,8 @@ def test_user(self):
self.assertFalse(u.is_superuser)
# Check API-based user creation with no password
- User.objects.create_user('testuser2', 'test2@example.com')
- self.assertFalse(u.has_usable_password())
+ u2 = User.objects.create_user('testuser2', 'test2@example.com')
+ self.assertFalse(u2.has_usable_password())
def test_user_no_email(self):
"Check that users can be created without an email"

4 comments on commit 0136274

@jezdez
Owner

@ptone I'm pretty sure that doesn't fix #392. Please make sure to use Trac ticket IDs to reduce the number of wrong comments there (see https://code.djangoproject.com/ticket/392)

@freakboy3742

Yeah... I thought closing out a 7 year old ticket was too good to be true :-)

@jezdez
Owner

Teehee!

@mjtamlyn
Collaborator

This is a bit of an issue in the long run though - not that I have any idea what the solution is.

See this commit for instance: 24154b2 - doesn't have anything to do with #225

Please sign in to comment.
Something went wrong with that request. Please try again.