-
Notifications
You must be signed in to change notification settings - Fork 420
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TestX509StoreContext::test_verify_with_time FAILED #684
Comments
Could we just…you know give expire_datetime 13h of leeway? 😇 |
This seems the most reasonable approach. |
|
This appears to be a bug in The On python 3, the issue can be verified easily: >>> from datetime import datetime, timezone
>>> tn = datetime.strptime("19700101000000Z", "%Y%m%d%H%M%SZ") # tn will be naive (timezone-unaware)
>>> tn.timestamp()
-3600.0 # I'm in CET, which is 1 hour after UTC on 1st January
>>> tn.strftime("%s")
'-3600'
>>> ta = tn.replace(tzinfo=timezone.utc) # ta will be timezone-aware
>>> ta.timestamp()
0.0 # since ta is in UTC, the timestamp of 1970-01-01 00:00 UTC is zero
>>> ta.strftime("%s")
'-3600' # but strftime("%s") disregards the timezone in ta, and always uses the local timezone |
@orosam thats another PR that needs rebasing sadly. 😬 |
I was playing with that a little 😄, strftime("%s") is evil... More about that at #798... |
Perhaps this issue has been fixed, but I have two more failures with this test. This one is on 32bit i586 (OpenSUSE/Tumbleweed):
|
On x86 (not x86_64) |
Whenever I try to build pyopenssl-17.2.0 on my gentoo system I get the following test failure:
openssl version is 1.0.2l
It happens with any python implementation on my system (I have python-2.7, python-3.5, pypy and pypy3)
The text was updated successfully, but these errors were encountered: