diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2017-06-03 20:38:22 -0400 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2017-06-03 14:38:22 -1000 |
commit | 133a17971af3c40ff935be5c74ba2542cebbea30 (patch) | |
tree | 8d1837008d4508e897bf856fac9dad5562c6ac11 /tests/test_utils.py | |
parent | cb175069bfa921503d79f12399948173bf247779 (diff) | |
download | cryptography-133a17971af3c40ff935be5c74ba2542cebbea30.tar.gz cryptography-133a17971af3c40ff935be5c74ba2542cebbea30.tar.bz2 cryptography-133a17971af3c40ff935be5c74ba2542cebbea30.zip |
Switched our backend to be a normal fixture in tests (#3665)
Diffstat (limited to 'tests/test_utils.py')
-rw-r--r-- | tests/test_utils.py | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/tests/test_utils.py b/tests/test_utils.py index 1637ba5b..2b5a2af3 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -24,21 +24,10 @@ from .utils import ( load_hash_vectors, load_kasvs_dh_vectors, load_kasvs_ecdh_vectors, load_nist_kbkdf_vectors, load_nist_vectors, load_pkcs1_vectors, load_rsa_nist_vectors, load_vectors_from_file, - load_x963_vectors, raises_unsupported_algorithm, skip_if_empty + load_x963_vectors, raises_unsupported_algorithm ) -class FakeInterface(object): - pass - - -def test_skip_if_empty(): - with pytest.raises(pytest.skip.Exception): - skip_if_empty([], [FakeInterface]) - - skip_if_empty(["notempty"], [FakeInterface]) - - def test_check_backend_support_skip(): supported = pretend.stub( kwargs={"only_if": lambda backend: False, "skip_message": "Nope"} |