From dc50561bf28d7fe6791b0a8776d97cd8cfe7aec3 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 13 Jan 2025 21:03:10 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/astral-sh/ruff-pre-commit: v0.8.6 → v0.9.1](https://github.com/astral-sh/ruff-pre-commit/compare/v0.8.6...v0.9.1) --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7892e1e..bd61a3d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -15,7 +15,7 @@ repos: - id: trailing-whitespace - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.8.6 + rev: v0.9.1 hooks: - id: ruff args: ["--fix", "--show-fixes"] From 3484ea4a006f753f986566fb2eae564d2c1011fc Mon Sep 17 00:00:00 2001 From: mayeut Date: Sat, 18 Jan 2025 18:33:05 +0100 Subject: [PATCH 2/2] fix --- tests/test_pybase64.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/test_pybase64.py b/tests/test_pybase64.py index 1991afe..2fedcf6 100644 --- a/tests/test_pybase64.py +++ b/tests/test_pybase64.py @@ -288,7 +288,7 @@ def test_invalid_padding_dec( [memoryview(b"- _")[::2], BufferError], ] params_invalid_altchars = pytest.mark.parametrize( - "altchars,exception", + ("altchars", "exception"), params_invalid_altchars_values, ids=[str(i) for i in range(len(params_invalid_altchars_values))], ) @@ -344,7 +344,7 @@ def test_invalid_altchars_dec_validate( # [std, b'-_', BinAsciiError], TODO does no fail with base64 module ] params_invalid_data_all = pytest.mark.parametrize( - "vector,altchars,exception", + ("vector", "altchars", "exception"), params_invalid_data_novalidate_values + params_invalid_data_validate_values, ids=[ str(i) @@ -354,12 +354,12 @@ def test_invalid_altchars_dec_validate( ], ) params_invalid_data_novalidate = pytest.mark.parametrize( - "vector,altchars,exception", + ("vector", "altchars", "exception"), params_invalid_data_novalidate_values, ids=[str(i) for i in range(len(params_invalid_data_novalidate_values))], ) params_invalid_data_validate = pytest.mark.parametrize( - "vector,altchars,exception", + ("vector", "altchars", "exception"), params_invalid_data_validate_values, ids=[str(i) for i in range(len(params_invalid_data_validate_values))], ) @@ -409,12 +409,12 @@ def test_invalid_data_dec_validate( [memoryview(b"abcd").cast("I"), TypeError], ] params_invalid_data_enc = pytest.mark.parametrize( - "vector,exception", + ("vector", "exception"), params_invalid_data_enc_values, ids=[str(i) for i in range(len(params_invalid_data_enc_values))], ) params_invalid_data_encodebytes = pytest.mark.parametrize( - "vector,exception", + ("vector", "exception"), params_invalid_data_encodebytes_values, ids=[str(i) for i in range(len(params_invalid_data_encodebytes_values))], )