This commit is contained in:
hugovk 2017-02-13 19:39:07 +02:00
parent 210789a5fe
commit a9549030f4
2 changed files with 3 additions and 1 deletions

View file

@ -51,6 +51,7 @@ def _can_use_ssl_securely():
v = sys.version_info
return v > (3, 3) or ((2, 7, 9) < v < (3, 0))
if _can_use_ssl_securely():
import ssl

View file

@ -2172,7 +2172,8 @@ class TestPyLast(unittest.TestCase):
msg = str(exc)
# Assert
self.assertEqual(msg, "Unauthorized Token - This token has not been issued")
self.assertEqual(msg,
"Unauthorized Token - This token has not been issued")
@flaky(max_runs=5, min_passes=1)