-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
Add tests for the PyEval_Run family of the C API #117968
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Most of these functions (especially implemented as macros) are thin wrappers around functions with richer interface, so it is not practical to repeat all tests for all functions. We only need to add comprehensive tests for base functions, and simpler tests for derived functions. Some functions are implemented as macros, but also as real functions. It would be nice to test both implementations (only simple tests are needed). |
…H-117982) Co-authored-by: NGRsoftlab <[email protected]> Co-authored-by: Erlend E. Aasland <[email protected]>
… the C API (pythonGH-117982) (cherry picked from commit 6078f20) Co-authored-by: Serhiy Storchaka <[email protected]> Co-authored-by: NGRsoftlab <[email protected]> Co-authored-by: Erlend E. Aasland <[email protected]>
… API (GH-117982) (GH-118011) (cherry picked from commit 6078f20) Co-authored-by: NGRsoftlab <[email protected]> Co-authored-by: Erlend E. Aasland <[email protected]>
The
Do you want to look into this? |
…GH-118230) The behavior of fileno() after fclose() is undefined, but it is the only practical way to check whether the file was closed. Only test this on the known platforms (Linux, Windows, macOS), where we already tested that it works.
… tests (pythonGH-118230) The behavior of fileno() after fclose() is undefined, but it is the only practical way to check whether the file was closed. Only test this on the known platforms (Linux, Windows, macOS), where we already tested that it works. (cherry picked from commit 546cbcf) Co-authored-by: Serhiy Storchaka <[email protected]>
…I tests (GH-118230) (GH-118266) The behavior of fileno() after fclose() is undefined, but it is the only practical way to check whether the file was closed. Only test this on the known platforms (Linux, Windows, macOS), where we already tested that it works. (cherry picked from commit 546cbcf) Co-authored-by: Serhiy Storchaka <[email protected]>
I'm still seeing failures; there might be two different issues. See here |
The 2 buildbots are now green again. What's the status of this issue? Do you have enough tests? |
I consider that added tests are enough, since other PyRun functions are just aliases to the 2 tested functions. |
Functional tests for the
PyEval_Run
family of the C API lack tests. Discovered in the discussions of PR #116637.PyRun_AnyFile
(may be a macro)PyRun_AnyFileEx
(may be a macro)PyRun_AnyFileExFlags
PyRun_AnyFileFlags
(may be a macro)PyRun_File
(may be a macro)PyRun_FileEx
(may be a macro)PyRun_FileFlags
(may be a macro)PyRun_InteractiveLoop
(may be a macro)PyRun_InteractiveLoopFlags
PyRun_InteractiveOne
(may be a macro)PyRun_InteractiveOneFlags
PyRun_InteractiveOneObject
PyRun_SimpleFile
(may be a macro)PyRun_SimpleFileEx
(may be a macro)PyRun_SimpleFileExFlags
PyRun_SimpleString
(may be a macro)PyRun_SimpleStringFlags
PyRun_String
(may be a macro)Linked PRs
The text was updated successfully, but these errors were encountered: