Skip to content

Commit 1b56554

Browse files
author
Kevin Turner
committed
[project @ test.test_server: warn when SHA256 tests are skipped.]
1 parent f438004 commit 1b56554

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎openid/test/test_server.py‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import cgi
99

1010
import unittest
11+
import warnings
1112

1213
from urlparse import urlparse
1314

@@ -833,7 +834,7 @@ def test_dhSHA1(self):
833834
try:
834835
cryptutil.sha256('')
835836
except NotImplementedError:
836-
pass
837+
warnings.warn("Not running SHA256 tests.")
837838
else:
838839
def test_dhSHA256(self):
839840
self.assoc = self.signatory.createAssociation(dumb=False, assoc_type='HMAC-SHA256')
@@ -1028,7 +1029,7 @@ def test_associate3(self):
10281029
try:
10291030
cryptutil.sha256('')
10301031
except NotImplementedError:
1031-
pass
1032+
warnings.warn("Not running SHA256 tests.")
10321033
else:
10331034
def test_associate4(self):
10341035
"""DH-SHA256 association session"""

0 commit comments

Comments
 (0)