Don't require _testcapi for test_code#152185
Conversation
StanFromIreland
left a comment
There was a problem hiding this comment.
Please do:
code_offset_to_line = import_helper.import_module("_testcapi").code_offset_to_linelike we have in test_newempty.
|
|
||
| def test_co_branches(self): | ||
| _testcapi = import_helper.import_module("_testcapi") | ||
| code_offset_to_line = _testcapi.code_offset_to_line |
There was a problem hiding this comment.
I can make it to a single line if that's preferred, I think it looks better this way but I don't feel strongly about it
|
Thanks @ShaharNaveh for the PR, and @StanFromIreland for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14. |
|
Thanks @ShaharNaveh for the PR, and @StanFromIreland for merging it 🌮🎉.. I'm working now to backport this PR to: 3.15. |
|
Thanks @ShaharNaveh for the PR, and @StanFromIreland for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13. |
|
GH-152201 is a backport of this pull request to the 3.14 branch. |
|
Sorry, @ShaharNaveh and @StanFromIreland, I could not cleanly backport this to |
|
GH-152202 is a backport of this pull request to the 3.15 branch. |
cc: @StanFromIreland