summaryrefslogtreecommitdiff
path: root/testing/deprecated_test.py
diff options
context:
space:
mode:
authorRonny Pfannschmidt <opensource@ronnypfannschmidt.de>2020-04-10 13:10:40 +0200
committerGitHub <noreply@github.com>2020-04-10 13:10:40 +0200
commit244c8e4a131eb446211fd0b2d7258303580b346a (patch)
tree1a84f4e1ff4f5a095777d7fb933f1b2d19afcdc9 /testing/deprecated_test.py
parentdf66a953a1a039574a82e6d1e30277e58fafe3c6 (diff)
parentd161bedcee9b09dba53c66d12a60a3df8adb8e17 (diff)
downloadpytest-244c8e4a131eb446211fd0b2d7258303580b346a.tar.gz
Merge pull request #6680 from RonnyPfannschmidt/fix-6294-more-docs-for-fromparent
doc: more docs for from_parent
Diffstat (limited to 'testing/deprecated_test.py')
-rw-r--r--testing/deprecated_test.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/testing/deprecated_test.py b/testing/deprecated_test.py
index 93601d0a9..cf7dee854 100644
--- a/testing/deprecated_test.py
+++ b/testing/deprecated_test.py
@@ -100,7 +100,7 @@ def test_node_direct_ctor_warning():
ms = MockConfig()
with pytest.warns(
DeprecationWarning,
- match="direct construction of .* has been deprecated, please use .*.from_parent",
+ match="Direct construction of .* has been deprecated, please use .*.from_parent.*",
) as w:
nodes.Node(name="test", config=ms, session=ms, nodeid="None")
assert w[0].lineno == inspect.currentframe().f_lineno - 1