aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_fernet.py
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2016-03-07 09:10:08 -0500
committerAlex Gaynor <alex.gaynor@gmail.com>2016-03-07 09:10:08 -0500
commit83c9cdaf1d8cb0d1a60f89935e237fa5fffcc571 (patch)
tree10df6ccc2fe0566630df5f8ca2d40031b20b72c3 /tests/test_fernet.py
parentde1bc1f5fd25cee71a25bf3e50c57137cb81c08d (diff)
parent4fc597d9990bdf17f714ae1a3a3f759e4039e4a9 (diff)
downloadcryptography-83c9cdaf1d8cb0d1a60f89935e237fa5fffcc571.tar.gz
cryptography-83c9cdaf1d8cb0d1a60f89935e237fa5fffcc571.tar.bz2
cryptography-83c9cdaf1d8cb0d1a60f89935e237fa5fffcc571.zip
Merge pull request #2771 from reaperhulk/use-bytes
pass bytes to modes/algorithms like we should
Diffstat (limited to 'tests/test_fernet.py')
-rw-r--r--tests/test_fernet.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_fernet.py b/tests/test_fernet.py
index c272eec0..dbce44fb 100644
--- a/tests/test_fernet.py
+++ b/tests/test_fernet.py
@@ -45,7 +45,7 @@ def test_default_backend():
@pytest.mark.requires_backend_interface(interface=HMACBackend)
@pytest.mark.supported(
only_if=lambda backend: backend.cipher_supported(
- algorithms.AES("\x00" * 32), modes.CBC("\x00" * 16)
+ algorithms.AES(b"\x00" * 32), modes.CBC(b"\x00" * 16)
),
skip_message="Does not support AES CBC",
)
@@ -126,7 +126,7 @@ class TestFernet(object):
@pytest.mark.requires_backend_interface(interface=HMACBackend)
@pytest.mark.supported(
only_if=lambda backend: backend.cipher_supported(
- algorithms.AES("\x00" * 32), modes.CBC("\x00" * 16)
+ algorithms.AES(b"\x00" * 32), modes.CBC(b"\x00" * 16)
),
skip_message="Does not support AES CBC",
)