From ec8b0f7da9857c096786c216db762dc59a4d1e4f Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Sat, 6 Dec 2014 11:20:16 -0800 Subject: Simplify, very slightly, how the parameterize decorator is used --- tests/test_bcrypt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') 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) -- cgit v1.2.1