diff options
author | Ronny Pfannschmidt <opensource@ronnypfannschmidt.de> | 2020-04-10 13:10:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-10 13:10:40 +0200 |
commit | 244c8e4a131eb446211fd0b2d7258303580b346a (patch) | |
tree | 1a84f4e1ff4f5a095777d7fb933f1b2d19afcdc9 /testing/deprecated_test.py | |
parent | df66a953a1a039574a82e6d1e30277e58fafe3c6 (diff) | |
parent | d161bedcee9b09dba53c66d12a60a3df8adb8e17 (diff) | |
download | pytest-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.py | 2 |
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 |