Skip to content

Commit

Permalink
Merge pull request urllib3#13 from pquentin/recent-date-fix
Browse files Browse the repository at this point in the history
Fix RECENT_DATE
  • Loading branch information
njsmith committed Mar 17, 2018
2 parents aa3ccef + 8b78982 commit 93e21af
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
1 change: 0 additions & 1 deletion test/test_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ def test_match_hostname_mismatch(self):
)
assert e._peer_cert == cert

@pytest.mark.xfail
def test_recent_date(self):
# This test is to make sure that the RECENT_DATE value
# doesn't get too far behind what the current date is.
Expand Down
9 changes: 5 additions & 4 deletions urllib3/_async/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,11 @@
ssl = None


# When updating RECENT_DATE, move it to
# within two years of the current date, and no
# earlier than 6 months ago.
RECENT_DATE = datetime.date(2016, 1, 1)
# When updating RECENT_DATE, move it to within two years of the current date,
# and not less than 6 months ago.
# Example: if Today is 2018-01-01, then RECENT_DATE should be any date on or
# after 2016-01-01 (today - 2 years) AND before 2017-07-01 (today - 6 months)
RECENT_DATE = datetime.date(2017, 6, 30)

_SUPPORTED_VERSIONS = frozenset([b'1.0', b'1.1'])

Expand Down

0 comments on commit 93e21af

Please sign in to comment.