﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
22842	Test tutorial example contains a bug in code	soujiro	soujiro	"https://docs.djangoproject.com/en/dev/intro/tutorial05/#fixing-the-bug

{{{
    return now - datetime.timedelta(days=1) <= self.pub_date < now
}}}

 that can create problems with one or more tests.

it should be changed to 
{{{
    return now - datetime.timedelta(days=1) <= self.pub_date <= now
}}}

 to avoid the case where the field's value is exactly ""now""

I've discussed this in DjangoVillage with Baptiste and Daniele, i will submit a patch in a few minutes"	Bug	closed	Documentation	dev	Normal	fixed			Ready for checkin	1	0	0	0	0	0
