diff --git a/test.py b/test.py index 74ea7b2..ef2a411 100755 --- a/test.py +++ b/test.py @@ -370,6 +370,7 @@ def test_invalids(self): pyotp.parse_uri('otpauth://totp?algorithm=aes') self.assertEqual('Invalid value for algorithm, must be SHA1, SHA256 or SHA512', str(cm.exception)) + @unittest.skipIf(sys.version_info < (3, 6), "Skipping test that requires deterministic dict key enumeration") def test_algorithms(self): otp = pyotp.parse_uri('otpauth://totp?algorithm=SHA1&secret=GEZDGNBV&algorithm=SHA1') self.assertEqual(hashlib.sha1, otp.digest)