Improved test coverage for codeop.py. - #154100
Conversation
* Ported existing tests to cover both the CommandCompiler and Compile classes * Added tests that cover the case when PyCF_ONLY_AST is set * Added tests that cover the case when the compile method returns a code object with flags
* Moved test set up to module scope * Use subTests decorator to inject compiler parameter into tests * Introduced new compiler parameter to assert* family of methods * Used functools to maintain the same API for the assert* methods where applicable
…python into improve-codeop-test-coverage
|
Thanks a lot for the feedback! I've implemented the changes you proposed and pushed them to my branch, so feel free to take a look when you can. |
encukou
left a comment
There was a problem hiding this comment.
Thank you!
For the future: you don't need to push "Update branch", unless there are merge conflicts.
|
Thanks @vjabuilds for the PR, and @encukou for merging it 🌮🎉.. I'm working now to backport this PR to: 3.15. |
|
Thanks @vjabuilds for the PR, and @encukou for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14. |
|
Sorry, @vjabuilds and @encukou, I could not cleanly backport this to |
|
GH-154938 is a backport of this pull request to the 3.15 branch. |
|
GH-154994 is a backport of this pull request to the 3.14 branch. |
Improved the test coverage for codeop.py.