Closed maxnordlund closed 6 years ago
It seems like pytest-regtest is the one trying to access funcargs, but it's this package that doesn't provide that method/property. Not sure if it makes sense, but I do think it's better to provide a dummy value then nothing.
OK, so I've update regtest and everything is good now. I guess the issue with missing fucargs is still there, but I'll close this nevertheless.
Thanks for the report @maxnordlund. Seems to me that pytest-regtest
should not expect the funcargs
attribute to always exist.
Looking at a few other plugins, it doesn't seem like they provide a dummy funcargs
attribute either, so pytest-regtest
would probably also fail when combined with https://pypi.org/project/pytest-pep8/ for example.
I'm happy to provide the dummy attribute if it helps you use this plugin, though, so let me know if you have any issues getting this fixed in pytest-regtest
.
No problem, always happy to help 😃
It's fixed in a later version (don't know which as I upgraded quite a few), but I guess it comes down to try to being nice or acknowledge that there will be bad plugin and try to fixed them instead.
If a funcargs attribute should be added I think a warning would be good to add as well.
Strangely enough, if you get errors it's fine, but if it's not then this happens: