mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-04 05:24:45 +00:00
Fixed RuntimeWarning in a test
This commit is contained in:
parent
d47f608f35
commit
8106e884cb
1 changed files with 1 additions and 1 deletions
|
|
@ -463,7 +463,7 @@ class TestCopyPage(TestCase):
|
|||
|
||||
# Set the created_at of the revision to a time in the past
|
||||
revision = christmas_event.get_latest_revision()
|
||||
revision.created_at = datetime.datetime(2014, 1, 1)
|
||||
revision.created_at = datetime.datetime(2014, 1, 1, 0, 0, 0, tzinfo=pytz.utc)
|
||||
revision.save()
|
||||
|
||||
# Copy it
|
||||
|
|
|
|||
Loading…
Reference in a new issue