Introduce and use locale-naive rfc2822 date format function (#44868)

* Introduce and use locale-naive rfc2822 date format function. Fixes #44857

* Adjust test expected response
This commit is contained in:
Matt Martz 2018-08-30 08:34:37 -05:00 committed by GitHub
commit 0221d1ad20
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 24 additions and 6 deletions

View file

@ -362,7 +362,7 @@ def test_Request_open_last_mod(urlopen_mock, install_opener_mock):
args = urlopen_mock.call_args[0]
req = args[0]
assert req.headers.get('If-modified-since') == now.strftime('%a, %d %b %Y %H:%M:%S +0000')
assert req.headers.get('If-modified-since') == now.strftime('%a, %d %b %Y %H:%M:%S -0000')
def test_Request_open_headers_not_dict(urlopen_mock, install_opener_mock):