bpo-35283: Add a deprecated warning for the threading.Thread.isAlive#11454
bpo-35283: Add a deprecated warning for the threading.Thread.isAlive#11454vstinner merged 1 commit intopython:masterfrom
Conversation
|
Hi, Can you take a look, please? |
|
@eamanu Done thanks! |
fd44c33 to
b9c06ba
Compare
|
@vstinner Hi, Could you review this PR, please? |
vstinner
left a comment
There was a problem hiding this comment.
Please document the deprecation at https://docs.python.org/dev/whatsnew/3.8.html#deprecated : Doc/whatsnew/3.8.rst file.
Strange. I cannot see isAlive() is https://docs.python.org/dev/library/threading.html Should we document it... just to say that it's deprecated?
|
I believe |
b7002e5 to
2bca0ae
Compare
vstinner
left a comment
There was a problem hiding this comment.
test_threading.test_old_threading_api() currently fails with -Werror:
vstinner@apu$ ./python -W error -m test -v test_threading -m test_old_threading_api
ERROR: test_old_threading_api (test.test_threading.ThreadTests)
You have to move the isAlive() call inside something like:
with self.assertWarnsRegex(DeprecationWarning, 'should be'):
|
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
35eb53b to
8a17926
Compare
|
@vstinner |
|
I have made the requested changes; please review again |
vstinner
left a comment
There was a problem hiding this comment.
LGTM, but can you please enhance the documentation formatting as requested? So I can merge your change.
Misc/NEWS.d/next/Library/2019-01-07-17-17-16.bpo-35283.WClosC.rst
Outdated
Show resolved
Hide resolved
|
@vstinner |
|
Thanks! I merged your PR. |
Add a deprecated warning for the threading.Thread.isAlive() method. (cherry picked from commit 89669ff)
https://bugs.python.org/issue35283