8000 gh-123401: Fix http.cookies module to support obsolete RFC 850 date format by Konano · Pull Request #123405 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content
Merged
Prev Previous commit
Next Next commit
Add comments for rfc850 test cases
  • Loading branch information
Konano authored Sep 5, 2024
commit 8cdf6c54ebe59dd1ef378d14eb15307dce1f5bdb
3 changes: 3 additions & 0 deletions Lib/test/test_http_cookies.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ def test_basic(self):
def test_obsolete_rfc850_date_format(self):
# Test cases with different days and dates in obsolete RFC 850 format
test_cases = [
# test cases from RFC 850
# https://datatracker.ietf.org/doc/html/rfc850#section-2
{
'data': 'key=value; expires=Saturday, 01-Jan-83 00:00:00 EST',
'output': 'Saturday, 01-Jan-83 00:00:00 EST'
Expand All @@ -70,6 +72,7 @@ def test_obsolete_rfc850_date_format(self):
'data': 'key=value; expires=Friday, 19-Nov-82 16:59:30 EST',
'output': 'Friday, 19-Nov-82 16:59:30 EST'
},
# other test cases
{
'data': 'key=value; expires=Sunday, 06-Nov-94 08:49:37 GMT',
'output': 'Sunday, 06-Nov-94 08:49:37 GMT'
Expand Down
Loading
0