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>
This commit is contained in:
@@ -352,6 +352,10 @@ def test_actually_equal():
|
|||||||
assert_equal_enough(a, rev1)
|
assert_equal_enough(a, rev1)
|
||||||
|
|
||||||
# slow test. comment out the following line to enable it.
|
# 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
|
@pytest.mark.skip
|
||||||
def test_diff_consistency():
|
def test_diff_consistency():
|
||||||
from mwxml import Dump
|
from mwxml import Dump
|
||||||
@@ -369,6 +373,9 @@ def test_diff_consistency():
|
|||||||
assert_equal_enough(b, rev)
|
assert_equal_enough(b, rev)
|
||||||
last_rev = 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
|
@pytest.mark.skip
|
||||||
def test_benchmark_diff(benchmark):
|
def test_benchmark_diff(benchmark):
|
||||||
from mwxml import Dump
|
from mwxml import Dump
|
||||||
|
|||||||
Reference in New Issue
Block a user