diff options
| author | marton bognar <martonbognar@users.noreply.github.com> | 2017-07-07 00:23:49 +0200 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-07-06 18:23:49 -0400 |
| commit | 82741605206382d0afd879c4bce174ef3d6e8aea (patch) | |
| tree | 18da680a99dce21f17540a31e96d52bd0a4e4710 /docs/intro/tutorial05.txt | |
| parent | 604341c85fe42c809d17ea2418566a48f60f78db (diff) | |
Fixed #28361 -- Fixed possible time-related failure in was_published_recently() tutorial test.
Regression in 268a646353c6fa9e5fc3730e13b386ddabb018ef.
Diffstat (limited to 'docs/intro/tutorial05.txt')
| -rw-r--r-- | docs/intro/tutorial05.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/intro/tutorial05.txt b/docs/intro/tutorial05.txt index aad693c0dc..88901cd5c1 100644 --- a/docs/intro/tutorial05.txt +++ b/docs/intro/tutorial05.txt @@ -285,7 +285,7 @@ more comprehensively: was_published_recently() returns False for questions whose pub_date is older than 1 day. """ - time = timezone.now() - datetime.timedelta(days=1) + time = timezone.now() - datetime.timedelta(days=1, seconds=1) old_question = Question(pub_date=time) self.assertIs(old_question.was_published_recently(), False) |
