question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

RECENT_DATE needs to be bumped

See original GitHub issue

Test 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:closed
  • Created 6 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
sethmlarsoncommented, Dec 31, 2017

Sorry for the terrible wording, thanks for fixing it. 😃

0reactions
DimStar77commented, Dec 31, 2017

The wording was changed with https://github.com/shazow/urllib3/commit/5f093e00ead09b1302d2e12dc4f4db5f4825c4f5 - but indeed did not really make it much less confusing 😃

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found