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 into
Conversation
|
Hi, Can you take a look, please? |
Sorry, something went wrong.
eamanu
left a comment
There was a problem hiding this comment.
LGTM
Sorry, something went wrong.
fd44c33 to
b9c06ba
Compare
January 7, 2019 16:31
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?
Sorry, something went wrong.
|
I believe |
Sorry, something went wrong.
b7002e5 to
2bca0ae
Compare
January 16, 2019 13:25
|
Hi, Thank you for fast feedback! |
Sorry, something went wrong.
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'):
Sorry, something went wrong.
|
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 |
Sorry, something went wrong.
35eb53b to
8a17926
Compare
January 16, 2019 14:50
|
@vstinner |
Sorry, something went wrong.
|
I have made the requested changes; please review again |
Sorry, something went wrong.
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.
Sorry, something went wrong.
|
@vstinner |
Sorry, something went wrong.
|
Thanks! I merged your PR. |
Sorry, something went wrong.
Add a deprecated warning for the threading.Thread.isAlive() method. (cherry picked from commit 89669ff)
https://bugs.python.org/issue35283