RECENT_DATE needs to be bumped
See original GitHub issueTest suite started failing, as RECENT_DATE is not recent enough:
[ 62s] def test_recent_date(self):
[ 62s] # This test is to make sure that the RECENT_DATE value
[ 62s] # doesn't get too far behind what the current date is.
[ 62s] # When this test fails update urllib3.connection.RECENT_DATE
[ 62s] # according to the rules defined in that file.
[ 62s] two_years = datetime.timedelta(days=365 * 2)
[ 62s] > assert RECENT_DATE > (datetime.datetime.today() - two_years).date()
[ 62s] E AssertionError: assert datetime.date(2016, 1, 1) > datetime.date(2016, 1, 1)
[ 62s] E + where datetime.date(2016, 1, 1) = <built-in method date of datetime.datetime object at 0x7fb6899be198>()
[ 62s] E + where <built-in method date of datetime.datetime object at 0x7fb6899be198> = (datetime.datetime(2017, 12, 31, 10, 16, 14, 472906) - datetime.timedelta(730)).date
[ 62s] E + where datetime.datetime(2017, 12, 31, 10, 16, 14, 472906) = <built-in method today of type object at 0x7fb68e948d20>()
[ 62s] E + where <built-in method today of type object at 0x7fb68e948d20> = <class 'datetime.datetime'>.today
[ 62s] E + where <class 'datetime.datetime'> = datetime.datetime
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
Bumping & Oversales | US Department of Transportation
Bumping, also known as “denied boarding,” happens when there are more passengers scheduled to fly on an airplane than available seats.
Read more >What to know if an airline wants to bump you from a flight
Following a bumping incident, airlines are required to offer passengers compensation at the airport on the same day, according to the DOT. If ......
Read more >What to Do if You're Bumped From a Flight, According to a ...
Bumped from a flight? You may be entitled to compensation. A lawyer explains how to get an airline to give you what you...
Read more >SQL selecting rows by most recent date with two unique ...
The above query will work if the distinct charge id has different chargetype combinations.Hope this simple query helps with little performance ...
Read more >FBI warning: This ransomware gang has hit over 100 targets ...
FBI and CISA have issued a joint alert about a ransomware group which has used old, unpatched vulnerabilities to access networks.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Sorry for the terrible wording, thanks for fixing it. 😃
The wording was changed with https://github.com/shazow/urllib3/commit/5f093e00ead09b1302d2e12dc4f4db5f4825c4f5 - but indeed did not really make it much less confusing 😃