summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2015-05-17 21:15:23 -0400
committerTim Graham <timograham@gmail.com>2015-05-17 21:15:23 -0400
commitdc8edc9dbf0ec85a60f1129b7b1dddd880162415 (patch)
tree939ad5d93aeb35b6308c0fa4120a23f6755f1c31
parent307acc745a4e655c35db96f96ceb4b87597dee49 (diff)
Added tzinfo to a test to fix RuntimeWarning.
-rw-r--r--tests/timezones/tests.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/timezones/tests.py b/tests/timezones/tests.py
index a091681929..30878e0d30 100644
--- a/tests/timezones/tests.py
+++ b/tests/timezones/tests.py
@@ -1173,9 +1173,10 @@ class AdminTests(TestCase):
# password = "secret"
cls.u1 = User.objects.create(
id=100, password='sha1$995a3$6011485ea3834267d719b4c801409b8b1ddd0158',
- last_login=datetime.datetime(2007, 5, 30, 13, 20, 10), is_superuser=True, username='super',
- first_name='Super', last_name='User', email='super@example.com',
- is_staff=True, is_active=True, date_joined=datetime.datetime(2007, 5, 30, 13, 20, 10)
+ last_login=datetime.datetime(2007, 5, 30, 13, 20, 10, tzinfo=UTC),
+ is_superuser=True, username='super', first_name='Super', last_name='User',
+ 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):