New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getfuncargvalue deprecation warning does set the proper stacklevel #2681

pelme opened this Issue Aug 13, 2017 · 2 comments


None yet
2 participants

pelme commented Aug 13, 2017

Calling request.getfuncargvalue() gives this rather unhelpful message which makes it hard to figure out where the call happens:


=== warnings summary ===
  /bla/bla/bla/_pytest/ DeprecationWarning: use of getfuncargvalue is deprecated, use getfixturevalue

This comment has been minimized.


RonnyPfannschmidt commented Aug 13, 2017

@pelme i wonder if we have other warnings with that mistake as well


This comment has been minimized.


pelme commented Aug 13, 2017

I did not look into it at this point. I have just been annoyed by this single instance for a while but not gotten around to fixing it.

Btw, I think stacklevel=2 would be a saner default in Python but anyways...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment