bpo-46129: Rewrite asyncio.locks tests with IsolatedAsyncioTestCase#30198
Conversation
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
|
The issue can be backported to 3.9-3.10, it doesn't add backward compatibility issues |
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
serhiy-storchaka
left a comment
There was a problem hiding this comment.
LGTM in general, but I have some questions.
| self.assertTrue(ta.done()) | ||
| self.assertTrue(tb.cancelled()) | ||
| self.assertTrue(tc.done()) | ||
| await tc |
There was a problem hiding this comment.
It differs from the former code. Why?
There was a problem hiding this comment.
Technically the same, but the new version also checks that tc task was not cancelled.
I can revert if you insist.
There was a problem hiding this comment.
If it is the same it LGTM.
asvetlov
left a comment
There was a problem hiding this comment.
@serhiy-storchaka thanks for the review.
Comments are addressed.
| self.assertTrue(ta.done()) | ||
| self.assertTrue(tb.cancelled()) | ||
| self.assertTrue(tc.done()) | ||
| await tc |
There was a problem hiding this comment.
Technically the same, but the new version also checks that tc task was not cancelled.
I can revert if you insist.
| self.assertTrue(ta.done()) | ||
| self.assertTrue(tb.cancelled()) | ||
| self.assertTrue(tc.done()) | ||
| await tc |
There was a problem hiding this comment.
If it is the same it LGTM.
|
Thanks @asvetlov for the PR 🌮🎉.. I'm working now to backport this PR to: 3.9, 3.10. |
|
Sorry, @asvetlov, I could not cleanly backport this to |
|
Sorry @asvetlov, I had trouble checking out the |
…tCase (pythonGH-30198) Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>. (cherry picked from commit 9c06fd8) Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
|
GH-30202 is a backport of this pull request to the 3.10 branch. |
|
GH-30204 is a backport of this pull request to the 3.9 branch. |
…Case (pythonGH-30198) Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>. (cherry picked from commit 9c06fd8) Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
…ythonGH-30198) Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
https://bugs.python.org/issue46129