diff options
author | Ronny Pfannschmidt <opensource@ronnypfannschmidt.de> | 2020-02-06 00:00:02 +0100 |
---|---|---|
committer | Ronny Pfannschmidt <opensource@ronnypfannschmidt.de> | 2020-03-01 20:33:46 +0100 |
commit | 3d390940d1ad895527486ea69fd06d68732b677b (patch) | |
tree | 060d5d141756686d5fe8179609d4a02af7afd0fa /testing/deprecated_test.py | |
parent | 5fc80d8bc37b074af9c5fbcb571e4759c052a4be (diff) | |
download | pytest-3d390940d1ad895527486ea69fd06d68732b677b.tar.gz |
refer the node-from-parent deprecation documentation in the warning
fixup: fix test for warning
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 b5c66d9f5..98c535aed 100644 --- a/testing/deprecated_test.py +++ b/testing/deprecated_test.py @@ -86,7 +86,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 |