document the requirements of the two skipped diff matcher tests

test_diff_consistency and test_benchmark_diff both read an uncompressed
test/dumps/ikwiki.xml that is not in the repository, so enabling them
requires decompressing the .bz2 first; test_diff_consistency also
writes debug files to the current directory. Say so where the skip
markers are.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
(cherry picked from commit fde1452666)
This commit is contained in:
2026-08-08 14:52:59 -07:00
parent 04ccea4848
commit caf604e43d

View File

@@ -347,6 +347,10 @@ def test_actually_equal():
assert_equal_enough(a, rev1)
# slow test. comment out the following line to enable it.
# Requires an uncompressed test/dumps/ikwiki.xml, which is not in the
# repository; decompress the .bz2 in test/dumps first. Also writes debug
# output to test_unicode_highlight_from/_to in the current directory on
# every iteration.
@pytest.mark.skip
def test_diff_consistency():
from mwxml import Dump
@@ -364,6 +368,9 @@ def test_diff_consistency():
assert_equal_enough(b, rev)
last_rev = rev
# benchmark, not a pass/fail test; run it deliberately when tuning diff
# performance. Requires an uncompressed test/dumps/ikwiki.xml, which is
# not in the repository; decompress the .bz2 in test/dumps first.
@pytest.mark.skip
def test_benchmark_diff(benchmark):
from mwxml import Dump