Skip to content

Commit 86572a2

Browse files
committed
Fix test_inspect_main_file
1 parent b7552a4 commit 86572a2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sphinx/ext/intersphinx/_cli.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
from __future__ import annotations
44

55
import sys
6+
from pathlib import Path
67

78
from sphinx.ext.intersphinx._load import _fetch_inventory
89

@@ -29,7 +30,7 @@ class MockConfig:
2930
target_uri='',
3031
inv_location=filename,
3132
config=MockConfig(), # type: ignore[arg-type]
32-
srcdir='', # type: ignore[arg-type]
33+
srcdir=Path(''),
3334
)
3435
for key in sorted(inv_data or {}):
3536
print(key)

0 commit comments

Comments
 (0)