Skip to content

Commit 4e9d66b

Browse files
Fix tests
1 parent 8c6f422 commit 4e9d66b

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ dev-install:
100100
$(CONDA_RUN) pip install -e . --no-deps --no-build-isolation
101101

102102
create-dev:
103-
$(CONDA) env create -f environment.yml
103+
$(CONDA) env create -f environment.yml --yes
104104
$(MAKE) dev-install
105105

106106
createdev: create-dev

src/mkdocstrings_handlers/python_xref/crossref.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ def _process_current_specifier(self, obj: Object, ref_match: re.Match) -> Option
201201
if obj.is_function:
202202
self._error(
203203
f"Cannot use '.' in function {obj.canonical_path}",
204-
just_warn=True
204+
just_warn=False
205205
)
206206
else:
207207
rel_obj = obj

tests/project/src/myproj/bar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class Bar(Foo):
2323

2424
def bar(self) -> None:
2525
"""This is in the [Bar][(c)] class.
26-
Also see the [foo][.] method and the [func][(m).] function.
26+
Also see the [foo][^.] method and the [func][(m).] function.
2727
"""
2828

2929
def foo(self) -> None:

tests/test_crossref.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ def assert_sub(parent: Object, title: str, ref: str,
9999

100100
# Error cases
101101

102-
assert_sub(meth1, "foo", ".", "mod1.mod2.Class1.foo", warning="Deprecated use of '.'")
103-
assert_sub(meth1, "foo", ".bar", "mod1.mod2.Class1.bar", warning="Deprecated use of '.'")
102+
assert_sub(meth1, "foo", ".", ".", warning="Cannot use '.'")
103+
assert_sub(meth1, "foo", ".bar", ".bar", warning="Cannot use '.'")
104104
assert_sub(meth1, "foo", ".bad+syntax", warning="Bad syntax")
105105
assert_sub(meth1, "bad id", "..", warning="not a qualified identifier")
106106
assert_sub(mod2, "foo", "(c)", warning="not in a class")

0 commit comments

Comments
 (0)