Skip to content

Commit 58bc553

Browse files
committed
fixup! Comply with new lint rule for unused variables
1 parent 24e1e50 commit 58bc553

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

testing/test_nodes.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ def test_node_direct_construction_deprecated() -> None:
2424
with pytest.raises(
2525
OutcomeException,
2626
match=(
27-
r"Direct construction of _pytest.nodes.Node has been deprecated, please "
28-
r"use _pytest.nodes.Node.from_parent.\nSee "
29-
r"https://docs.pytest.org/en/stable/deprecations.html#node-construction-changed-to-node-from-parent"
30-
r" for more details."
27+
r"Direct construction of _pytest\.nodes\.Node has been deprecated, please "
28+
r"use _pytest\.nodes\.Node\.from_parent.\nSee "
29+
r"https://docs\.pytest\.org/en/stable/deprecations\.html#node-construction-changed-to-node-from-parent"
30+
r" for more details\."
3131
),
3232
):
3333
nodes.Node(None, session=None) # type: ignore[arg-type]

testing/test_pytester.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -799,7 +799,7 @@ def test_pytester_makefile_dot_prefixes_extension_with_warning(
799799
) -> None:
800800
with pytest.raises(
801801
ValueError,
802-
match=r"pytester.makefile expects a file extension, try .foo.bar instead of foo.bar",
802+
match=r"pytester\.makefile expects a file extension, try \.foo\.bar instead of foo\.bar",
803803
):
804804
pytester.makefile("foo.bar", "")
805805

0 commit comments

Comments
 (0)