Browse files

Fixed a small oversight in auth tests

Thanks to Vinicius Ruan Cainelli for the catch
closes #392
  • Loading branch information...
1 parent c9c9a56 commit 01362745ba72286309ff1955219a5ffc32c760b0 @ptone ptone committed Sep 27, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 django/contrib/auth/tests/
@@ -38,8 +38,8 @@ def test_user(self):
# Check API-based user creation with no password
- User.objects.create_user('testuser2', '')
- self.assertFalse(u.has_usable_password())
+ u2 = User.objects.create_user('testuser2', '')
+ 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 replied Sep 27, 2012

@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


freakboy3742 replied Sep 27, 2012

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


jezdez replied Oct 4, 2012



mjtamlyn replied Oct 4, 2012

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.