Skip to content

Commit 7cbe6ef

Browse files
fixup! fixup! Color the full diff that pytest shows as a diff
1 parent 2f649bf commit 7cbe6ef

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

testing/test_assertion.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1795,7 +1795,7 @@ def test_reprcompare_verbose_long() -> None:
17951795

17961796
@pytest.mark.parametrize("enable_colors", [True, False])
17971797
@pytest.mark.parametrize(
1798-
("code", "expected_lines"),
1798+
("test_code", "expected_lines"),
17991799
(
18001800
(
18011801
"""
@@ -1823,9 +1823,9 @@ def test():
18231823
),
18241824
)
18251825
def test_comparisons_handle_colors(
1826-
pytester: Pytester, color_mapping, enable_colors, code, expected_lines
1826+
pytester: Pytester, color_mapping, enable_colors, test_code, expected_lines
18271827
) -> None:
1828-
p = pytester.makepyfile(code)
1828+
p = pytester.makepyfile(test_code)
18291829
result = pytester.runpytest(
18301830
f"--color={'yes' if enable_colors else 'no'}", "-vv", str(p)
18311831
)

0 commit comments

Comments
 (0)