Added tzinfo to a test to fix RuntimeWarning.

This commit is contained in:
Tim Graham 2015-05-17 21:15:23 -04:00
parent 307acc745a
commit dc8edc9dbf
1 changed files with 4 additions and 3 deletions

View File

@ -1173,9 +1173,10 @@ class AdminTests(TestCase):
# password = "secret" # password = "secret"
cls.u1 = User.objects.create( cls.u1 = User.objects.create(
id=100, password='sha1$995a3$6011485ea3834267d719b4c801409b8b1ddd0158', id=100, password='sha1$995a3$6011485ea3834267d719b4c801409b8b1ddd0158',
last_login=datetime.datetime(2007, 5, 30, 13, 20, 10), is_superuser=True, username='super', last_login=datetime.datetime(2007, 5, 30, 13, 20, 10, tzinfo=UTC),
first_name='Super', last_name='User', email='super@example.com', is_superuser=True, username='super', first_name='Super', last_name='User',
is_staff=True, is_active=True, date_joined=datetime.datetime(2007, 5, 30, 13, 20, 10) email='super@example.com', is_staff=True, is_active=True,
date_joined=datetime.datetime(2007, 5, 30, 13, 20, 10, tzinfo=UTC),
) )
def setUp(self): def setUp(self):