From 7cbe6ef913d4fdd2b126ff2f23323029d25f7723 Mon Sep 17 00:00:00 2001 From: Benjamin Schubert Date: Sat, 21 Oct 2023 14:06:06 +0100 Subject: [PATCH] fixup! fixup! Color the full diff that pytest shows as a diff --- testing/test_assertion.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/testing/test_assertion.py b/testing/test_assertion.py index 3598dfeb0..62c465d8a 100644 --- a/testing/test_assertion.py +++ b/testing/test_assertion.py @@ -1795,7 +1795,7 @@ def test_reprcompare_verbose_long() -> None: @pytest.mark.parametrize("enable_colors", [True, False]) @pytest.mark.parametrize( - ("code", "expected_lines"), + ("test_code", "expected_lines"), ( ( """ @@ -1823,9 +1823,9 @@ def test_reprcompare_verbose_long() -> None: ), ) def test_comparisons_handle_colors( - pytester: Pytester, color_mapping, enable_colors, code, expected_lines + pytester: Pytester, color_mapping, enable_colors, test_code, expected_lines ) -> None: - p = pytester.makepyfile(code) + p = pytester.makepyfile(test_code) result = pytester.runpytest( f"--color={'yes' if enable_colors else 'no'}", "-vv", str(p) )