pytest-twisted icon indicating copy to clipboard operation
pytest-twisted copied to clipboard

Twisted 24.7 is deprecating twisted.internet.defer.returnValue

Open hynek opened this issue 1 year ago • 3 comments
trafficstars

When running a test suite under Twisted 24.7.0rc1, I get a lot of:

pytest_twisted.py:424: DeprecationWarning: twisted.internet.defer.returnValue was deprecated in Twisted 24.7.0rc1; please use standard return statement instead

Looks like it's used in two places:

https://github.com/pytest-dev/pytest-twisted/blob/23ba22090eb5d53c9a51f01c5ce61a3246fbe43e/pytest_twisted.py#L424

and

https://github.com/pytest-dev/pytest-twisted/blob/23ba22090eb5d53c9a51f01c5ce61a3246fbe43e/pytest_twisted.py#L338

hynek avatar Jul 31 '24 08:07 hynek