GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||
GeezerVison is showing github.com — gh-93274: Disable Limited API tests with Py_TRACE_REFS by encukou · Pull Request #95796 · python/cpython Conversation
| ||||||||||||||||||||||||||||
|
🤖 New build scheduled with the buildbot fleet by @encukou for commit 430a940 🤖 If you want to schedule another build, you need to add the ":hammer: test-with-buildbots" label again. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| @@ -1,3 +1,16 @@ | |||
| #include "pyconfig.h" // Py_TRACE_REFS | |||
|
|
|||
| #ifdef Py_TRACE_REFS | |||
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I would suggest to move this #ifdef in _testcapimodule.c instead.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| // Py_TRACE_REFS is incompatible with Limited API | ||
| #include "parts.h" | ||
| int | ||
| _PyTestCapi_Init_VectorcallLimited(PyObject *m) { |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I suggest putting an #ifdef on the _PyTestCapi_Init_VectorcallLimited() call in _testcapimodole.c instead of defining a no-op function.
Maybe define somewhere a macro to decide if vectorcall is tested or not? Something like:
#ifndef Py_TRACE_REFS
# define TEST_VECTORCALL
#endif
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
If the tests pass, I'll merge this as is and make it better later. I'd like to make testing limited API as smooth as possible, which'll be much easier without the pressure of a red buildbot. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@vstinner: #95991 includes your suggestions (with changes – the check is in |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.