Skip to content

Commit

Permalink
Skip test on 3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
kislyuk committed Oct 16, 2020
1 parent 5385700 commit 3bfb890
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 3bfb890

Please sign in to comment.