summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2014-12-06 11:20:16 -0800
committerAlex Gaynor <alex.gaynor@gmail.com>2014-12-06 11:20:16 -0800
commitec8b0f7da9857c096786c216db762dc59a4d1e4f (patch)
tree316e0f53bb091454a431856df9945710f4aa168b /tests
parentc13b1e80fdde97b05756f3cccdbb0559a72798e5 (diff)
downloadpy-bcrypt-git-ec8b0f7da9857c096786c216db762dc59a4d1e4f.tar.gz
Simplify, very slightly, how the parameterize decorator is used
Diffstat (limited to 'tests')
-rw-r--r--tests/test_bcrypt.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_bcrypt.py b/tests/test_bcrypt.py
index bb32299..99b7a50 100644
--- a/tests/test_bcrypt.py
+++ b/tests/test_bcrypt.py
@@ -49,7 +49,7 @@ def test_gensalt_rounds_valid(rounds, expected, monkeypatch):
assert bcrypt.gensalt(rounds) == expected
-@pytest.mark.parametrize(("rounds",), [[x] for x in range(1, 4)])
+@pytest.mark.parametrize("rounds", list(range(1, 4)))
def test_gensalt_rounds_invalid(rounds, monkeypatch):
urandom = mock.Mock(return_value=b"0000000000000000")
monkeypatch.setattr(os, "urandom", urandom)