pytest-describe: PytestDeprecationWarning regarding DescribeBlock with pytest 5.4

With the latest pytest 5.4 I start getting the following warnings:

.tox/py36/lib/site-packages/pytest_describe/plugin.py:149: PytestDeprecationWarning:
  direct construction of DescribeBlock has been deprecated,
  please use DescribeBlock.from_parent return DescribeBlock(obj, collector)

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 3
  • Comments: 16 (12 by maintainers)

Most upvoted comments

Ok, I just asked on the mailing list and hope we will hear back from someone in the pytest-dev org.

I’m not yet part of the pytest-dev organization, but I’m willing to help make releases if we can get it transferred there.

Yes, you can simply add new owners or maintainers (who can only publish but not delete releases) on PyPI. Regarding GitHub, it’s probably best to transfer the project to the pytest-dev organization instead to another person. The current repository address ropez/pytest-describe will then be automatically forwarded by GitHub to pytest-dev/pytest-describe. I guess it’s best to ask on pytest-dev@python.org if they can initiate the transfer. Do you want to do that or shall I ask on your behalf? I can take over maintenance if nobody else volunteers, since I would hate to see this project die, but if @jacebrowning or somebody on the pytest-dev mailing list volunteers, or we could share the responsibility, I would be happier.

@ropez It’s not a complete blocker, but getting https://github.com/ropez/pytest-describe/pull/25 merged first will make fixing this warning easier.

I can take a look this weekend.