Skip to content

Commit 8cdf6c5

Browse files
authored
Add comments for rfc850 test cases
1 parent 592da51 commit 8cdf6c5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Lib/test/test_http_cookies.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ def test_basic(self):
6262
def test_obsolete_rfc850_date_format(self):
6363
# Test cases with different days and dates in obsolete RFC 850 format
6464
test_cases = [
65+
# test cases from RFC 850
66+
# https://datatracker.ietf.org/doc/html/rfc850#section-2
6567
{
6668
'data': 'key=value; expires=Saturday, 01-Jan-83 00:00:00 EST',
6769
'output': 'Saturday, 01-Jan-83 00:00:00 EST'
@@ -70,6 +72,7 @@ def test_obsolete_rfc850_date_format(self):
7072
'data': 'key=value; expires=Friday, 19-Nov-82 16:59:30 EST',
7173
'output': 'Friday, 19-Nov-82 16:59:30 EST'
7274
},
75+
# other test cases
7376
{
7477
'data': 'key=value; expires=Sunday, 06-Nov-94 08:49:37 GMT',
7578
'output': 'Sunday, 06-Nov-94 08:49:37 GMT'

0 commit comments

Comments
 (0)