mirror of
https://github.com/django/django.git
synced 2025-08-02 10:02:41 +00:00
Switched to Python 3-compatible octal notation.
This commit is contained in:
parent
85cd458944
commit
324d48d0a7
4 changed files with 10 additions and 10 deletions
|
@ -143,14 +143,14 @@ class HttpDateProcessing(unittest.TestCase):
|
|||
def testParsingRfc1123(self):
|
||||
parsed = parse_http_date('Sun, 06 Nov 1994 08:49:37 GMT')
|
||||
self.assertEqual(datetime.utcfromtimestamp(parsed),
|
||||
datetime(1994, 11, 06, 8, 49, 37))
|
||||
datetime(1994, 11, 6, 8, 49, 37))
|
||||
|
||||
def testParsingRfc850(self):
|
||||
parsed = parse_http_date('Sunday, 06-Nov-94 08:49:37 GMT')
|
||||
self.assertEqual(datetime.utcfromtimestamp(parsed),
|
||||
datetime(1994, 11, 06, 8, 49, 37))
|
||||
datetime(1994, 11, 6, 8, 49, 37))
|
||||
|
||||
def testParsingAsctime(self):
|
||||
parsed = parse_http_date('Sun Nov 6 08:49:37 1994')
|
||||
self.assertEqual(datetime.utcfromtimestamp(parsed),
|
||||
datetime(1994, 11, 06, 8, 49, 37))
|
||||
datetime(1994, 11, 6, 8, 49, 37))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue