diff options
Diffstat (limited to 'tests/hazmat/primitives/test_constant_time.py')
-rw-r--r-- | tests/hazmat/primitives/test_constant_time.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/tests/hazmat/primitives/test_constant_time.py b/tests/hazmat/primitives/test_constant_time.py index dad1b612..e8e85a84 100644 --- a/tests/hazmat/primitives/test_constant_time.py +++ b/tests/hazmat/primitives/test_constant_time.py @@ -6,21 +6,19 @@ from __future__ import absolute_import, division, print_function import pytest -import six - from cryptography.hazmat.primitives import constant_time class TestConstantTimeBytesEq(object): def test_reject_unicode(self): with pytest.raises(TypeError): - constant_time.bytes_eq(b"foo", six.u("foo")) + constant_time.bytes_eq(b"foo", u"foo") with pytest.raises(TypeError): - constant_time.bytes_eq(six.u("foo"), b"foo") + constant_time.bytes_eq(u"foo", b"foo") with pytest.raises(TypeError): - constant_time.bytes_eq(six.u("foo"), six.u("foo")) + constant_time.bytes_eq(u"foo", u"foo") def test_compares(self): assert constant_time.bytes_eq(b"foo", b"foo") is True |