summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2017-07-07 00:09:34 -0400
committerPaul Kehrer <paul.l.kehrer@gmail.com>2017-07-06 23:09:34 -0500
commit7f5610c7f387e554149206137b182c1ff656898f (patch)
treeb1d8a2914ac0a7f674a9d076918990c2bc7d81ad
parent4fbc11d981502b8966e852aa6573f8a0349fce51 (diff)
downloadpyopenssl-7f5610c7f387e554149206137b182c1ff656898f.tar.gz
101 doesn't work, just mark it flaky (#662)
-rw-r--r--tests/test_crypto.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_crypto.py b/tests/test_crypto.py
index 04970fa..47a914d 100644
--- a/tests/test_crypto.py
+++ b/tests/test_crypto.py
@@ -1615,6 +1615,7 @@ WpOdIpB8KksUTCzV591Nr1wd
with pytest.raises(TypeError):
cert.gmtime_adj_notBefore(None)
+ @flaky.flaky
def test_gmtime_adj_notBefore(self):
"""
`X509.gmtime_adj_notBefore` changes the not-before timestamp to be the
@@ -1628,7 +1629,7 @@ WpOdIpB8KksUTCzV591Nr1wd
not_before = datetime.strptime(
cert.get_notBefore().decode(), "%Y%m%d%H%M%SZ"
)
- not_before_max = datetime.utcnow() + timedelta(seconds=101)
+ not_before_max = datetime.utcnow() + timedelta(seconds=100)
assert not_before_min <= not_before <= not_before_max
def test_gmtime_adj_notAfter_wrong_args(self):