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
Document how to test a deprecated class #8478
Comments
Please check the associated branch add see if it make sense. I have updated the documentation to talk about how to test deprecated module attributes. I have re-arrange the current docs so that the example about how to run trial so that it fails on warnings has a greater visibility. Thanks! |
This doesn't quite fix it, I think; As you'd requested, I'm going to try to address this in a documentation patch as part of #8368. I'm also going to add a new test helper method, |
Hi mesozoic, My problem was that there were no examples on how to "properly" deprecate and test a class so I went for creating this branch to discuss and document what we agreed. Cheers |
This document is not fully consistent with the docstring in twisted/python/deprecate.py for I suggest that both the document and the docstring be made consistent. |
|
Once comment about testing deprecation. When we outsource a module, we should keep all the existing tests as they are in order to make sure that the API is not changed. We should not evade the deprecation policy by outsourcing the package... the outsource packages should have the same quality standards as the Twisted project itself |
see the discussion from here http://twistedmatrix.com/pipermail/twisted-python/2016-June/030438.html
Searchable metadata
The text was updated successfully, but these errors were encountered: