Skip to content

Commit 8cdefe5

Browse files
committed
Use pytest.deprecated_call when testing coloured_diff
1 parent 68fe4e8 commit 8cdefe5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,8 @@ def test_diff(file_regression: FileRegressionFixture):
466466
original = data_dir / "original"
467467
modified = data_dir / "modified"
468468

469-
diff = coloured_diff(
469+
diff = pytest.deprecated_call(
470+
coloured_diff,
470471
original.read_lines(),
471472
modified.read_lines(),
472473
fromfile="original_file.txt",

0 commit comments

Comments
 (0)