2828"""
2929
3030any_whitespace = re .compile (r"\s*" )
31- ref_tests = list ( Path (__file__ ).with_name ("ref" ).glob ("*.txt" ))
31+ ref_tests = [( p . name , p ) for p in Path (__file__ ).with_name ("ref" ).glob ("*.txt" )]
3232ref_xfails = {
3333 "ref_fluent_attrs.txt" : sys .version_info < (3 , 8 ),
3434 "ref_fluent_call.txt" : sys .version_info < (3 , 8 ),
@@ -47,8 +47,8 @@ def assert_links(file: Path, links: list):
4747 assert s == link
4848
4949
50- @pytest .mark .parametrize (" file" , ref_tests )
51- def test_references (file : Path , tmp_path : Path ):
50+ @pytest .mark .parametrize (( "name" , " file") , ref_tests )
51+ def test_references (name : str , file : Path , tmp_path : Path ):
5252 """
5353 Basic extension tests for reference building.
5454
@@ -72,6 +72,7 @@ def test_references(file: Path, tmp_path: Path):
7272 links = []
7373
7474 files = {"conf.py" : default_conf + conf , "index.rst" : index }
75+ print (f"Building file { name } ." )
7576 result_dir = _sphinx_build (tmp_path , "html" , files )
7677
7778 assert_links (result_dir / "index.html" , links )
0 commit comments