diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2015-07-02 00:21:41 -0400 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2015-07-02 00:21:41 -0400 |
commit | 50ebb489852b8c9dd02d08e09375aa00859999bf (patch) | |
tree | f40c381ff722229cd1763ca6ac313c3361a5009f /tests/utils.py | |
parent | cc04d679b81bcd69370ddc79c651e5e8a656ef04 (diff) | |
download | cryptography-50ebb489852b8c9dd02d08e09375aa00859999bf.tar.gz cryptography-50ebb489852b8c9dd02d08e09375aa00859999bf.tar.bz2 cryptography-50ebb489852b8c9dd02d08e09375aa00859999bf.zip |
fixed tests
Diffstat (limited to 'tests/utils.py')
-rw-r--r-- | tests/utils.py | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/tests/utils.py b/tests/utils.py index c810303e..5083d48c 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -53,13 +53,11 @@ def skip_if_empty(backend_list, required_interfaces): def check_backend_support(item): supported = item.keywords.get("supported") if supported and "backend" in item.funcargs: - if not all( - mark.kwargs["only_if"](item.funcargs["backend"]) - for mark in supported - ): - pytest.skip("{0} ({1})".format( - supported.kwargs["skip_message"], item.funcargs["backend"] - )) + for mark in supported: + if not mark.kwargs["only_if"](item.funcargs["backend"]): + pytest.skip("{0} ({1})".format( + mark.kwargs["skip_message"], item.funcargs["backend"] + )) elif supported: raise ValueError("This mark is only available on methods that take a " "backend") |