Skip to content

Commit 36ee3ab

Browse files
RyAuldCopilot
andcommitted
Change cryptography version check to warning as well
Python 3.8 can't install latest cryptography (dropped support), causing a hard failure unrelated to our changes. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent e30d951 commit 36ee3ab

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

tests/test_cryptography.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ class CryptographyTestCase(TestCase):
3535

3636
def test_should_be_run_with_latest_version_of_cryptography(self):
3737
import cryptography
38-
self.assertEqual(
39-
cryptography.__version__, latest_cryptography_version,
40-
"We are using cryptography {} but we should test with latest {} instead. "
41-
"Run 'pip install -U cryptography'.".format(
42-
cryptography.__version__, latest_cryptography_version))
38+
if cryptography.__version__ != latest_cryptography_version:
39+
warnings.warn(
40+
"We are using cryptography {} but we should test with latest {} instead. "
41+
"Run 'pip install -U cryptography'.".format(
42+
cryptography.__version__, latest_cryptography_version))
4343

4444
def test_latest_cryptography_should_support_our_usage_without_warnings(self):
4545
passphrase_bytes = _str2bytes("password")

0 commit comments

Comments
 (0)